<i18n dev> RFR: 8174269: Remove COMPAT locale data provider from JDK [v6]
Joe Wang
joehw at openjdk.org
Tue Mar 5 06:52:54 UTC 2024
On Mon, 4 Mar 2024 19:07:44 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> This PR intends to remove the legacy `COMPAT` locale data from the JDK. The `COMPAT` locale data was introduced for applications' migratory purposes transitioning to `CLDR`. It is becoming a technical debt and now is the time to remove it (we've been emitting a warning at JVM startup since JDK21, if the app is using `COMPAT`). A corresponding CSR has also been drafted.
>
> Naoto Sato has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 44 additional commits since the last revision:
>
> - Merge branch 'master' into JDK-8174269-COMPAT-Removal
> - Addressing review comments
> - Update test/jdk/java/text/Format/DateFormat/Bug6683975.java
>
> Co-authored-by: Justin Lu <Justin.lu at oracle.com>
> - Remove `GensrcLocaleData.gmk`
> - Update make/jdk/src/classes/build/tools/cldrconverter/CLDRConverter.java
>
> Co-authored-by: Andrey Turbanov <turbanoff at gmail.com>
> - cleanup
> - BreakIteratorProvider available locales fix
> - clean-up
> - test fixes
> - makeZoneData.pl fix
> - ... and 34 more: https://git.openjdk.org/jdk/compare/9da59104...b771e303
LGTM. This is a lot of work. Looking through the files alone takes hours. Kudos to the great work!
I kind of like some of the date formats in COMPACT to be honest :-)
make/jdk/src/classes/build/tools/cldrconverter/CLDRConverter.java line 1320:
> 1318: * "US<NBSP>dst" -> "D"
> 1319: *
> 1320: * `tzdbLinks` retains `Link`s of time zones. if the value
nit, "if the value" seems to be an unfinished sentence.
src/java.base/share/classes/sun/util/locale/provider/BaseLocaleDataMetaInfo.java line 31:
> 29: * It is used to avoid loading non-existent localized resources so that
> 30: * jar files won't be opened unnecessary to look up them.
> 31: */
nit: move the class description to right above the class? "unnecessary" -> "unnecessarily"
-------------
Marked as reviewed by joehw (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/17991#pullrequestreview-1915980264
PR Comment: https://git.openjdk.org/jdk/pull/17991#issuecomment-1978071713
PR Review Comment: https://git.openjdk.org/jdk/pull/17991#discussion_r1512206671
PR Review Comment: https://git.openjdk.org/jdk/pull/17991#discussion_r1512207766
More information about the i18n-dev
mailing list