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

HijrahDate.with(DAY_OF_YEAR) sets wrong date

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • 8
    • b102
    • generic
    • generic
    • Verified

      The following code prints "Hijrah-umalqura AH 1534-12-24" the incorrect date.

      System.out.println(HijrahChronology.INSTANCE.date(1534, 2, 10).with(ChronoField.DAY_OF_YEAR, 354));

      The 354th day (the last day) of the year 1534 maps to 1534-12-29.

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: