Release Note: Japanese Imperial Calendar Exception Change for Era too Large

XMLWordPrintable

      Calling `Calendar.computeTime()` with a Japanese Imperial Calendar for a `Calendar.ERA` field value that is too large now throws `IllegalArgumentException` instead of `ArrayIndexOutOfBoundsException`. Thus, any operations requiring time recomputation for a Japanese Imperial Calendar are now affected. For example, at the time of this release note, `new Calendar.Builder().setCalendarType("japanese").set(Calendar.ERA, 6).build()` now throws `IllegalArgumentException`.

            Assignee:
            Justin Lu
            Reporter:
            Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: