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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • javafx

    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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: