JDK-8339792 : Timezone Updater Tool can not handle 2024b
  • Type: Bug
  • Component: tools
  • Sub-Component: updaters
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2024-09-08
  • Updated: 2024-09-09
  • Resolved: 2024-09-09
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
A DESCRIPTION OF THE PROBLEM :
Time Zone Database 2024b contains at least on one place full name of month instead of just three first letters. This is causing following exception:

Caused by: java.lang.IllegalArgumentException: Unknown month: April
	at tools.tzdb.TzdbZoneRulesProvider$MonthDayTime.parseMonth(TzdbZoneRulesProvider.java:391)
	at tools.tzdb.TzdbZoneRulesProvider$MonthDayTime.parse(TzdbZoneRulesProvider.java:314)
	at tools.tzdb.TzdbZoneRulesProvider$MonthDayTime.access$300(TzdbZoneRulesProvider.java:258)
	at tools.tzdb.TzdbZoneRulesProvider$RuleLine.parse(TzdbZoneRulesProvider.java:561)
	at tools.tzdb.TzdbZoneRulesProvider.load(TzdbZoneRulesProvider.java:200)

This can easily be fixed by using something like return Month.valueOf(string.toUpperCase()) as fallback in default branch.



Comments
Duplicate of JDK-8339645
09-09-2024

JDK-8339644 is updating the parsing to deal with the change in 2024b.
09-09-2024