Skip to content

PIVOT-13757: Fix locale bundling for JDK23+#94

Merged
NathanEckert merged 4 commits into
mainfrom
fix/include-locales-parent-language
Apr 23, 2026
Merged

PIVOT-13757: Fix locale bundling for JDK23+#94
NathanEckert merged 4 commits into
mainfrom
fix/include-locales-parent-language

Conversation

@NathanEckert

Copy link
Copy Markdown
Contributor

Java 9 made the default locale data CLDR instead of COMPAT https://openjdk.org/jeps/252, and JDK23 remove the legacy locales: https://inside.java/2024/07/11/quality-heads-up/

The removal of those locales introduced a change of behavior: when the COMPAT locale provider was removed by https://bugs.openjdk.org/browse/JDK-8174269, the jlink plugin no longer pulls bare language parents in for region tags like fr-FR.
The consequence is that DecimalFormatSymbols.getInstance(Locale.forLanguageTag("fr-FR")) silently falls back to ROOT symbols, despite fr-FR still appearing in Locale.getAvailableLocales().
See https://bugs.openjdk.org/browse/JDK-8159214.

Comment thread tests/test_jdk4py.py
Comment thread tests/test_jdk4py.py
Comment thread tests/test_jdk4py.py
Comment thread tests/test_jdk4py.py
@tibdex tibdex assigned NathanEckert and unassigned tibdex Apr 22, 2026
@NathanEckert NathanEckert enabled auto-merge (squash) April 23, 2026 13:41
@NathanEckert NathanEckert merged commit d50c00c into main Apr 23, 2026
16 checks passed
@NathanEckert NathanEckert deleted the fix/include-locales-parent-language branch April 23, 2026 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants