RFR: 8253321: java.util.Locale.LanguageRange#equals is inconsistent after calling hashCode
Naoto Sato
naoto at openjdk.java.net
Fri Sep 18 23:33:08 UTC 2020
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
-------------
Commit messages:
- fixed noeol
- Merge branch 'master' into JDK-8253321
- added test case
- Merge branch 'master' into JDK-8253321
- 8253321: java.util.Locale.LanguageRange#equals is inconsistent after calling hashCode
Changes: https://git.openjdk.java.net/jdk/pull/260/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=260&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8253321
Stats: 51 lines in 2 files changed: 48 ins; 1 del; 2 mod
Patch: https://git.openjdk.java.net/jdk/pull/260.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/260/head:pull/260
PR: https://git.openjdk.java.net/jdk/pull/260
More information about the core-libs-dev
mailing list