<i18n dev> RFR: 8369184: SimpleTimeZone equals() Returns True for Unequal Instances with Different hashCode Values [v4]
Naoto Sato
naoto at openjdk.org
Wed Oct 8 18:08:38 UTC 2025
> Fixing the equals/hashCode contract in the SimpleTimeZone class. The current implementation includes DST rule fields in hash code computation even for zones that do not observe DST, while equals() always considers them. Also correcting the example code in the class description, where it used 20-year-old obsolete "America/Los_Angeles" rule.
Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
Apply suggestion from @pavelrappo
Co-authored-by: Pavel Rappo <32523691+pavelrappo at users.noreply.github.com>
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/27660/files
- new: https://git.openjdk.org/jdk/pull/27660/files/aafdf18b..e764e2a6
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=27660&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=27660&range=02-03
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/27660.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27660/head:pull/27660
PR: https://git.openjdk.org/jdk/pull/27660
More information about the i18n-dev
mailing list