On Fri, 30 Jul 2021 18:26:56 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
> I believe it was an optimisation to make comparison as quick as possible. > There are many places in Swing where property keys are compared as object > identity rather than using `equals`. If this place is changed, probably all > other such places need updating if they haven't been updated to `equals` yet. Probably it will be better to roll back this one, and carefully check the usage of "==" for possible replacement by the "equal". That possibility should be proved by some test cases. ------------- PR: https://git.openjdk.java.net/jdk/pull/4943