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

(cal) Support calendar type identification

    Details

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

      Description

      Thai Buddhist calendar and Japanese imperial calendar systems were added in 1.4 and 1.6, respectively. However, there's no public way to identify those non-Gregorian calendars. You need to rely on a Locale with which a Calendar object has been created. There should be a method to get calendar system identification.

      Unicode LDML (Locale Data Markup Language) defines identifiers for calendar types. Java SE should use the same identifiers.

      http://unicode.org/reports/tr35/

        Attachments

          Issue Links

            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: