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

New era placeholder not displayed using java.text.DateFormat

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P4
    • None
    • 11.0.2
    • core-libs
    • None

    Description

      System.out.println(
        new SimpleDateFormat("Gy-M-d", new Locale("ja","JP","JP")).format(
          new Calendar.Builder().setDate(2019,Calendar.MAY,1).build().getTime()))

      Expected Result: 元号1-5-1

      Actual Result: N1-5-1

      Attachments

        Issue Links

          Activity

            People

              naoto Naoto Sato
              ysatowse Yoshiki Sato (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: