TimeZone.toZoneId() throws exception when using old mapping for "HST"

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • 24
    • Affects Version/s: 24
    • Component/s: core-libs
    • None

      TimeZone.toZoneId() throws exception for "HST" when the old mapping 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".

      Reproducer,

      Set the system property "sun.timezone.ids.oldmapping" as true.
      Then run, TimeZone.getTimeZone("MST").toZoneId()

            Assignee:
            Justin Lu
            Reporter:
            Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: