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

Verbose ArrayIndexOutOfBoundsException message also in JNI calls.

XMLWordPrintable

    • b06

        Change JDK-8201593: Print array length in ArrayIndexOutOfBoundsException
        introduced text as "Index 13 out of bounds for length 10" to various AIOOB exceptions
        thrown in the VM. It omitted the exceptions thrown in jni calls.

        This change extends the messages of the AIOOB exceptions thrown in
        Get|SetObjectArrayElement and Get|Set<type>ArrayRegion.

        Before, Get|SetObjectArrayElement printed just the index,
        Get|Set<type>ArrayRegion printed no message.

        Now the following messages are printed:

        "Index %d out of bounds for length %d"
        "Length %d is negative"
        "Array region %d..%d out of bounds for length %d"

              goetz Goetz Lindenmaier
              goetz Goetz Lindenmaier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: