ArrayIndexOutOfBoundsException in java.util.JapaneseImperialCalendar

Dominik Helm dominik.helm at stud.tu-darmstadt.de
Thu Sep 14 16:55:10 UTC 2017


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 discuss mailing list