<i18n dev> RFR: 8369184: SimpleTimeZone equals() Returns True for Unequal Instances with Different hashCode Values [v3]

Roger Riggs rriggs at openjdk.org
Wed Oct 8 16:28:09 UTC 2025


On Tue, 7 Oct 2025 20:43:20 GMT, Naoto Sato <naoto at openjdk.org> wrote:

>> 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:
> 
>   Address review comments

LGTM

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

Marked as reviewed by rriggs (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27660#pullrequestreview-3315634206


More information about the i18n-dev mailing list