ArrayIndexOutOfBoundsException in java.util.JapaneseImperialCalendar

Weijun Wang weijun.wang at oracle.com
Thu Sep 14 23:22:01 UTC 2017


Move to core-libs-dev.

> On Sep 15, 2017, at 12:55 AM, Dominik Helm <dominik.helm at stud.tu-darmstadt.de> wrote:
> 
> I did not find a better place to report this, so I'm going to post it here:
> 
> There is an obvious ArrayIndexOutOfBoundsException in
> java.util.JapaneseImperialCalendar.actualMonthLength():
> The third and fourth lines read
> 
> if (eraIndex == -1) {
> 	long transitionFixedDate = sinceFixedDates[eraIndex];
> 
> thereby always trying to access an out ouf bounds element on
> sinceFixedDates.
> 
> Best regards,
> Dominik



More information about the core-libs-dev mailing list