<i18n dev> RFR: 8341484: TimeZone.toZoneId() throws exception when using old mapping for "HST"

Justin Lu jlu at openjdk.org
Thu Oct 3 19:53:43 UTC 2024


Please review this PR which fixes an unexpected exception for `TimeZone.toZoneId("HST")` when the old mapping system property is used.

The culprit is in `TimeZone.toZoneId0()`.

This method provides workarounds for "EST", "MST", and "HST" when the old mapping system property is true. However, it seems that "HST" was added with "America/Honolulu" when it should have been "Pacific/Honolulu".

Added a basic test.

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

Commit messages:
 - init

Changes: https://git.openjdk.org/jdk/pull/21332/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21332&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8341484
  Stats: 25 lines in 2 files changed: 19 ins; 0 del; 6 mod
  Patch: https://git.openjdk.org/jdk/pull/21332.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21332/head:pull/21332

PR: https://git.openjdk.org/jdk/pull/21332


More information about the i18n-dev mailing list