In the 1.3 documentation, System.arraycopy is specified as throwing
"IndexOutOfBoundsException", rather than the more specific exception
"ArrayIndexOutOfBoundsException". (See
http://java.sun.com/products/jdk/1.3/docs/api/java/lang/System.html#arraycopy(java.lang.Object, int, java.lang.Object, int, int)
There exist some tests that expect the ArrayIndexOutOfBoundsException,
notably the _201_check minimal-conformance test of the SpecJVM98
benchmark suite (aka "PepTest").
"IndexOutOfBoundsException", rather than the more specific exception
"ArrayIndexOutOfBoundsException". (See
http://java.sun.com/products/jdk/1.3/docs/api/java/lang/System.html#arraycopy(java.lang.Object, int, java.lang.Object, int, int)
There exist some tests that expect the ArrayIndexOutOfBoundsException,
notably the _201_check minimal-conformance test of the SpecJVM98
benchmark suite (aka "PepTest").
- relates to
-
JDK-4402863 System.arraycopy should raise "IndexOutOfBoundsException".
-
- Resolved
-