We don't know whether equality is symmetric in this language. I had that kind of experience at H2O.com, where convincing people that equality has to be an equivalence relationship was just impossible.
It's worse than that here. Somewhere deep in JDK they check for equality instead of equivalence. So the fix is to pass in the thing that will be equal, not just equivalent.
no subject
Date: 2021-07-02 03:02 pm (UTC)We don't know whether equality is symmetric in this language. I had that kind of experience at H2O.com, where convincing people that equality has to be an equivalence relationship was just impossible.
no subject
Date: 2021-07-02 06:47 pm (UTC)no subject
Date: 2021-07-03 02:34 am (UTC)BTW, what about `method = method.intern();`?
no subject
Date: 2021-07-03 08:12 am (UTC)method.intern() can work, if you guarantee it won't intern all possible permutations of upper and lower-case spellings and invalid method names.
no subject
Date: 2021-07-11 03:18 pm (UTC)