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

(cal) locale's default Calendar should be created if unknown calendar is specified

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b55
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      In JDK7, Unicode locale extensions were introduced and a calendar type can be specified for creating a Calendar, such as "th-TH-u-ca-buddhist". When an unknown (or unsupported) calendar is specified, the default calendar type of the locale should be used. For example, if "th-TH-u-ca-chinese" is given, the Thai Buddhist calendar should be created by Calendar.getInstance. Currently, a GregorianCalendar is created instead of the locale's default. There's the same problem with ja_JP_JP.

        Attachments

          Activity

            People

            • Assignee:
              okutsu Masayoshi Okutsu
              Reporter:
              okutsu Masayoshi Okutsu
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: