Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8187649

ArrayIndexOutOfBoundsException in java.util.JapaneseImperialCalendar

    XMLWordPrintable

Details

    • b25
    • generic
    • generic

    Backports

      Description

        FULL PRODUCT VERSION :
        All versions since at least JDK6

        ADDITIONAL OS VERSION INFORMATION :
        All OSes

        A DESCRIPTION OF THE PROBLEM :
        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.


        REPRODUCIBILITY :
        This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

                naoto Naoto Sato
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: