On 10/07/2023 21:09, Naoto Sato wrote:
:
And isn't this the case of a breaking change more than just updating
the time database used by default in JDK?
You could specify the system property `java.locale.providers` to
COMPAT to use the JDK8 locales (although this has been deprecated in
JDK21). However, expecting US resources with Locale("en_US") is
incorrect in the first place.
Just to add to Naoto's comments.
JDK 8 was the first release to include CLDR locale data (JEP 127). JDK 8
continued to use the legacy JRE locale data by default but the system
property could be use to try out CLDR data in advance of the switch to
using it by default in JDK 9 (JEP 252). From JDK 9 to this day, the
system property can be used to switch back to the JRE lcoale data
although this locale data hasn't been maintained for several years.
-Alan