equals inconsistent with hashCode in AffineTransform
Martin Desruisseaux
martin.desruisseaux at geomatys.com
Mon Jul 25 12:04:32 UTC 2022
Hello
I'm not sure if the pull request below has been noticed, since I have
not seen evaluation. This is about the equals(Object) method being
inconsistent with hashCode() in the AffineTransform class. This bug
prevents the use of AffineTransform as keys in HashMap, unless
AffineTransform construction is well-controlled or some workaround is
applied before any use as key.
There is 2 different ways to fix this bug. The one proposed in current
pull request tries to minimize the behavioral change compared to current
implementation.
https://github.com/openjdk/jdk/pull/9121
Martin
More information about the client-libs-dev
mailing list