[jdk8u-dev] RFR: 8350816: [8u] Update TzdbZoneRulesCompiler to ignore HST/EST/MST links

Dmitry Cherepanov dcherepanov at openjdk.org
Wed Feb 26 22:21:39 UTC 2025


This is 8u-specific issue. It's a prerequisite for backport of 2024b ([JDK-8339637](https://bugs.openjdk.org/browse/JDK-8339637)) as backporting 2024b to 8u as is leads to the following failure

java.lang.IllegalArgumentException: Unknown region: HST
	at build.tools.tzdb.TzdbZoneRulesCompiler.findRegionIndex(TzdbZoneRulesCompiler.java:290)
	at build.tools.tzdb.TzdbZoneRulesCompiler.outputFile(TzdbZoneRulesCompiler.java:259)
	at build.tools.tzdb.TzdbZoneRulesCompiler.compile(TzdbZoneRulesCompiler.java:193)
	at build.tools.tzdb.TzdbZoneRulesCompiler.main(TzdbZoneRulesCompiler.java:91)

[JDK-8042369](https://bugs.openjdk.org/browse/JDK-8042369) updated the compiler to ignore HST/EST/MST links in 9+  (https://hg.openjdk.org/jdk9/jdk9/jdk/rev/6c26f18d9bc0#l8.139) so the failure didn't appear with backports of 2024b to 11+

The patch changes the compiler in 8u to ignore HST/EST/MST links and work in the same way as it works for 11+

Testing: all relevant tests passed (java/text/Format java/util/TimeZone sun/util/calendar sun/util/resources)

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

Commit messages:
 - 8350816: [8u] Update TzdbZoneRulesCompiler to ignore HST/EST/MST links

Changes: https://git.openjdk.org/jdk8u-dev/pull/630/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=630&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8350816
  Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/630.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/630/head:pull/630

PR: https://git.openjdk.org/jdk8u-dev/pull/630


More information about the jdk8u-dev mailing list