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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • core-libs
    • b55
    • generic
    • generic
    • Verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: