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

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

    XMLWordPrintable

Details

    • b11
    • 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

                naoto Naoto Sato
                yzhou Daisy Zhou (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: