<i18n dev> RFR: 8253321: java.util.Locale.LanguageRange#equals is inconsistent after calling hashCode

Joe Wang joehw at openjdk.java.net
Sat Sep 19 01:21:31 UTC 2020


On Fri, 18 Sep 2020 23:26:39 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> Hi,
> 
> Please review the fix to JDK-8253321. As in the issue, uninitialized (cached) hash code was incorrectly referenced in
> equals() method. Removing it will correct the problem. Also, unrelated to the issue, I fixed a parameter description in
> a private method.  Naoto

Marked as reviewed by joehw (Reviewer).

Also, copyright year may need to be updated to 2020 for Locale.java.

-------------

PR: https://git.openjdk.java.net/jdk/pull/260


More information about the i18n-dev mailing list