[10] RFR 8179086: java.time.temporal.ValueRange has poor hashCode()

Ivan Gerasimov ivan.gerasimov at oracle.com
Fri Apr 21 17:55:25 UTC 2017


It was noticed that ValueRange.hashCode() returns zero for many values.
This is due to lack of some parentheses to set correct precedence.

Would you please help review the trivial fix?

BUGURL: https://bugs.openjdk.java.net/browse/JDK-8179086
WEBREV: http://cr.openjdk.java.net/~igerasim/8179086/00/webrev/

The fix is applicable to jdk 9, but I'm not sure it's that critical.
We can later backport it to an update release.

With kind regards,
Ivan Gerasimov

More information about the core-libs-dev mailing list