The `LocaleData` class currently hard-codes the set of locales whose resource 
bundles reside in the `java.base` module. This change generates that set at 
build time from the CLDR source XML for the CLDR locale provider. Other locale 
providers now provide the appropriate set based on their own resource bundles.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - minor code consolidation
 - Removed static set
 - initial commit

Changes: https://git.openjdk.org/jdk/pull/31822/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31822&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8387795
  Stats: 69 lines in 5 files changed: 58 ins; 4 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/31822.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31822/head:pull/31822

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

Reply via email to