On Thu, 8 May 2025 20:50:25 GMT, Naoto Sato <na...@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.

This pull request has now been integrated.

Changeset: 5f00c877
Author:    Naoto Sato <na...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/5f00c877e26f1716da231771b611234db5607fa7
Stats:     10 lines in 1 file changed: 7 ins; 1 del; 2 mod

8356450: NPE in CLDRTimeZoneNameProviderImpl for tzdata downgrades after 
JDK-8342550

Reviewed-by: bpb, jlu, joehw

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

PR: https://git.openjdk.org/jdk/pull/25130

Reply via email to