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

Calendar.getDisplayName() returns empty string for new Japanese Era on some locales

    Details

    • Subcomponent:
    • Resolved In Build:
      b11
    • Verification:
      Verified

      Backports

        Description

        Run getDisplayName(ERA, SHORT, Locale.forLanguageTag("zh")), attached the test code.
        Actual result:
        * run with -Djava.locale.providers=COMPAT,CLDR, it will return "N"
        * run with -Djava.locale.providers=CLDR,COMPAT, it will return empty string.
        * run with default data provider, it will return empty string.

        Expected result:
        Shouldn't return empty string.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  naoto Naoto Sato
                  Reporter:
                  yzhou Daisy Zhou
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: