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

Calendar.getDisplayNames cannot return correct map on some locales

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 11.0.4-oracle, 14
    • core-libs

      Run attached test
      Result:
      java version "14-ea" 2020-03-17
      Java(TM) SE Runtime Environment (build 14-ea+21-927)
      Java HotSpot(TM) 64-Bit Server VM (build 14-ea+21-927, mixed mode, sharing)
      MONTH - NARROW_STANDALONE - All name:null
      MONTH - NARROW_STANDALONE - Current:N
      DAY_OF_WEEK - NARROW_STANDALONE - All name:null
      DAY_OF_WEEK - NARROW_STANDALONE - Current:M
      The sample uses de as instance. Actually this issue happens on some locales.

      Expected Result:
      Should return a Map containing all names of the calendar field in the given style and locale and their corresponding field values, instead of null.

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

              Created:
              Updated:
              Resolved: