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

[DatePicker] Exception when Hijrah-umalqura chronology is used, and old data is set, breaks control

    Details

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

      Description

      if using ISO chronology, I select october, 11 1990, and then select Hijrah-umalqura chronology, and click dropdown button, I get exception, which contains :

      java.lang.Thread.run(Thread.java:724)
              Because
      Hijrah date out of range
      java.time.chrono.HijrahChronology.getHijrahDateInfo(HijrahChronology.java:599)
      java.time.chrono.HijrahDate.<init>(HijrahDate.java:275)
      java.time.chrono.HijrahDate.ofEpochDay(HijrahDate.java:157)
      java.time.chrono.HijrahChronology.date(HijrahChronology.java:491)
      java.time.chrono.HijrahChronology.date(HijrahChronology.java:212)
      javafx.scene.control.DatePicker$2.toString(DatePicker.java:343)
      javafx.scene.control.DatePicker$2.toString(DatePicker.java:338)
      com.sun.javafx.scene.control.skin.DatePickerSkin.updateDisplayNode(DatePickerSkin.java:273)
      com.sun.javafx.scene.control.skin.DatePickerSkin.handleControlPropertyChanged(DatePickerSkin.java:174)
      com.sun.javafx.scene.control.skin.BehaviorSkinBase$2.call(BehaviorSkinBase.java:179)
      com.sun.javafx.scene.control.skin.BehaviorSkinBase$2.call(BehaviorSkinBase.java:177)

      It brakes control

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                leifs Leif Samuelsson (Inactive)
                Reporter:
                akirov Alexander Kirov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:
                  Imported: