<i18n dev> RFR: 8356450: NPE in CLDRTimeZoneNameProviderImpl for tzdata downgrades after JDK-8342550
Naoto Sato
naoto at openjdk.org
Fri May 9 16:20:00 UTC 2025
On Thu, 8 May 2025 20:50:25 GMT, Naoto Sato <naoto at openjdk.org> wrote:
> Fixing the NPE in CLDR time zone name provider. The NPE occurrs if the time zone data was downgraded by the TZUpdater tool in which some time zones are missing. For those missing zones, `ZoneInfo.getTimeZone()` returns null, while `TimeZone.getTimeZone()` falls back to `GMT`, which was the case prior to JDK-8342550. Changed the code in CLDR provider to assume the fixed zone in such a case.
> Manually confirmed the fix, and no test case is provided, as it requires tweaking the JDK with TZUpdater.
Thanks for the reviews!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25130#issuecomment-2867133483
More information about the i18n-dev
mailing list