Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8350646 Calendar.Builder.build() Throws ArrayIndexOutOfBoundsException
  3. JDK-8350970

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`.

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

              Created:
              Updated:
              Resolved: