equals inconsistent with hashCode in AffineTransform

Philip Race philip.race at oracle.com
Mon Jul 25 17:02:51 UTC 2022


The PR isn't valid - it isn't using a valid bug id so skara tooling 
hasn't marked it RFR,
so no one has even noticed it ..
Looks to me as if this is an incident ID not a bug id.

-phil.

On 7/25/22 5:04 AM, Martin Desruisseaux wrote:
> 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