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

JapaneseDate.get(DAY_OF_YEAR) values vs range are inconsistent

XMLWordPrintable

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

      JapaneseDate.get(DAY_OF_YEAR) returns the number of days from the beginning of the Gregorian year, not the number of days from the beginning of the Era (for YearOfEra1).
      However, when fetching the DAY_OF_YEAR from a JapaneseDate for the start of an Era, an exception can be thrown because the dayOfYear is larger than the actualRange computed for that first year.

      BTW, there are no specific tests for JapaneseDate.get(DAY_OF_YEAR).

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

              Created:
              Updated:
              Resolved: