JapaneseDate.get(DAY_OF_YEAR) values vs range are inconsistent

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved: