-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 25
-
Component/s: core-libs
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`.