-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b06
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8218429 | 11.0.3 | Goetz Lindenmaier | P4 | Resolved | Fixed | master |
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"
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"
- backported by
-
JDK-8218429 Verbose ArrayIndexOutOfBoundsException message also in JNI calls.
- Resolved
- relates to
-
JDK-8266176 -Wmaybe-uninitialized happens in libArrayIndexOutOfBoundsExceptionTest.c
- Resolved
-
JDK-8201593 Print array length in ArrayIndexOutOfBoundsException.
- Resolved