Calendar [zh_CN]: Locale falls back to CLDR adapter first when -Djava.locale.providers=JRE,CLDR

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Cannot Reproduce
    • Priority: P4
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • Environment:

      Any platform that supports Java 8.

    • b56
    • 8
    • b66

      Run the attached test program, CalendarTest.java. The program tries to load the SHORT_STANDALONE display name of weekday.

      When adapter list is JRE,CLDR, the short display name in CLDR is loaded. I check the resource files in JDK. Format_zh_CN.class and Format_zh.class are in JRE resources. In CLDR resource, there is only Format_zh.class. There is also no standalone.DayAbbreviations in all these files. The expected output should be from JRE adapter, when adapter list is JRE,CLDR.

      This problem only happens in zh_CN. In other locales I checked (en_US, de_DE and ja_JP), the short display name is loaded from resource file in JRE when adapter list is JRE,CLDR. Attached is the screenshot of the output.

            Assignee:
            Rachna Goel (Inactive)
            Reporter:
            Yong Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: