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.
------------- Commit messages: - initial commit Changes: https://git.openjdk.org/jdk/pull/27660/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27660&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8369184 Stats: 96 lines in 2 files changed: 89 ins; 0 del; 7 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
