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

Era designator not displayed correctly using the COMPAT provider

    Details

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

      Backports

        Description

        SimpleDateformat doesn't display era designator correctly in Japanese locale with the COMPAT provider.

        Since it works fine in JDK 8 as well as with using the CLDR provider of JDK 11. The issue is a regression bug from JDK 8.

        //JDK 11 with COMPAT provider
        $ java -showversion -Djava.locale.providers=COMPAT Test
        java version "11.0.3" 2019-04-16 LTS
        Java(TM) SE Runtime Environment 18.9 (build 11.0.3+12-LTS)
        Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.3+12-LTS, mixed mode)

        AD19年07月03日 10時50分01秒

        //JDK 11 with CLDR provider
        $ java -showversion -Djava.locale.providers=CLDR Test
        java version "11.0.3" 2019-04-16 LTS
        Java(TM) SE Runtime Environment 18.9 (build 11.0.3+12-LTS)
        Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.3+12-LTS, mixed mode)

        西暦19年07月03日 10時50分08秒

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  naoto Naoto Sato
                  Reporter:
                  shadowbug Shadow Bug
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: