HijrahDate.with(DAY_OF_YEAR) sets wrong date

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: