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

DatePicker: Japanese Chrono, can't set date before Meiji 6.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:

      Description

      This is observed in b103, might be related to the changes of java.time in b102.

      When trying to set date before Meiji 6 (1873/01/01), DateTimeException is reported, and setting the date in DatePicker fails.

      Exception in thread "JavaFX Application Thread" java.time.DateTimeException: JapaneseDate before Meiji 6 is not supported
      at java.time.chrono.JapaneseDate.<init>(JapaneseDate.java:325)
      at java.time.chrono.JapaneseChronology.date(JapaneseChronology.java:304)
      at java.time.chrono.JapaneseChronology.date(JapaneseChronology.java:121)
      at com.sun.javafx.scene.control.skin.DatePickerContent.toChrono(DatePickerContent.java:710)
      at com.sun.javafx.scene.control.skin.DatePickerContent.updateDayCells(DatePickerContent.java:486)
      at com.sun.javafx.scene.control.skin.DatePickerContent.updateValues(DatePickerContent.java:387)
      at com.sun.javafx.scene.control.skin.DatePickerContent$4.changed(DatePickerContent.java:156)
      at com.sun.javafx.scene.control.skin.DatePickerContent$4.changed(DatePickerContent.java:153)

        Attachments

          Activity

            People

            • Assignee:
              leifs Leif Samuelsson (Inactive)
              Reporter:
              jennyh Jenny Huang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:
                Imported: