[BUG] Java 15: DecimalFormatSymbols overrides equals but not hashCode
Rob Spoor
openjdk at icemanx.nl
Tue Sep 15 19:14:11 UTC 2020
In Java 14 and before, DecimalFormatSymbols had overrides for both
equals and hashCode. In Java 15, the override for hashCode has
disappeared, and it now inherits hashCode from java.lang.Object. That
means it now violates the contract for equals + hashCode: two equal
DecimalFormatSymbols instances can have different hash codes.
More information about the core-libs-dev
mailing list