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

Naoto Sato naoto at openjdk.java.net
Mon Sep 21 12:37:14 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

This pull request has now been integrated.

Changeset: dad6edbf
Author:    Naoto Sato <naoto at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/dad6edbf
Stats:     52 lines in 2 files changed: 1 ins; 48 del; 3 mod

8253321: java.util.Locale.LanguageRange#equals is inconsistent after calling hashCode

Reviewed-by: joehw, rriggs

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

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


More information about the i18n-dev mailing list