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

Sergey Bylokhov serb at openjdk.org
Fri Feb 28 03:39:08 UTC 2025


On Wed, 26 Feb 2025 22:17:08 GMT, Dmitry Cherepanov <dcherepanov at openjdk.org> wrote:

> 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)

Marked as reviewed by serb (Reviewer).

we got the same exception and solved it in a similar way.

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

PR Review: https://git.openjdk.org/jdk8u-dev/pull/630#pullrequestreview-2649632616
PR Comment: https://git.openjdk.org/jdk8u-dev/pull/630#issuecomment-2689640218


More information about the jdk8u-dev mailing list