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

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

    Details

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

      Any platform that supports Java 8.

    • Subcomponent:
    • Introduced In Build:
      b56
    • Introduced In Version:
      8
    • Resolved In Build:
      b66

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: