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

New era placeholder not displayed using java.text.DateFormat

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 11.0.2
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      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

              Assignee:
              naoto Naoto Sato
              Reporter:
              ysatowse Yoshiki Sato
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: