<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:14:38 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

test/jdk/java/util/Locale/LanguageRangeTest.java line 27:

> 25:  * @bug 8253321
> 26:  * @summary test LanguageRange class
> 27:  * @run testng/othervm LanguageRangeTest

Is it necessary to run in othervm?

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

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


More information about the i18n-dev mailing list