Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8298808

Check `script` code on detecting the base locales

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 21
    • None
    • core-libs
    • b03
    • generic
    • generic

      In CLDR 43, two new locales (`en_Dsrt.xml` and `en_Shaw.xml`) are added among others (https://github.com/unicode-org/cldr/pull/2508/files#diff-94cbefde02914335da884f768063a06a84ad651ee4e56cdb1cb90625d7776731). Those locales are incorrectly recognized as `base locale`s by CLDRConverter buildtool, thus they go into the `java.base` module and the test build/translations/VerifyTranslations.java fails with:
      ```
      Unsupported translation found in lib/modules: java.base/sun/text/resources/cldr/FormatData_en_Dsrt.class
      Unsupported translation found in lib/modules: java.base/sun/text/resources/cldr/FormatData_en_Shaw.class
      Unsupported translation found in lib/modules: java.base/sun/util/resources/cldr/CurrencyNames_en_Dsrt.class
      Unsupported translation found in lib/modules: java.base/sun/util/resources/cldr/LocaleNames_en_Dsrt.class
      Unsupported translation found in lib/modules: java.base/sun/util/resources/cldr/TimeZoneNames_en_Dsrt.class
      Unsupported translation found in lib/src.zip: java.base/sun/text/resources/cldr/FormatData_en_Dsrt.java
      Unsupported translation found in lib/src.zip: java.base/sun/text/resources/cldr/FormatData_en_Shaw.java
      Unsupported translation found in lib/src.zip: java.base/sun/util/resources/cldr/CurrencyNames_en_Dsrt.java
      Unsupported translation found in lib/src.zip: java.base/sun/util/resources/cldr/LocaleNames_en_Dsrt.java
      Unsupported translation found in lib/src.zip: java.base/sun/util/resources/cldr/TimeZoneNames_en_Dsrt.java
      ```
      CLDRConverter tool needs to be corrected so that those resource bundles go into `jdk.localedata` module.

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: