hg: jdk9/hs-rt/hotspot: 6191224: (reflect) Misleading detail string in IllegalArgumentException thrown by Array.get<Type>
david.holmes at oracle.com
david.holmes at oracle.com
Fri Oct 24 06:57:44 UTC 2014
Changeset: 27ce97a5b0dd
Author: cjplummer
Date: 2014-10-23 14:43 -0700
URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/27ce97a5b0dd
6191224: (reflect) Misleading detail string in IllegalArgumentException thrown by Array.get<Type>
Summary: The test case shows that an exception is thrown with the message "Argument is not an array", when in fact the argument is an array, but an array of a primitive type is actually what was expected. Fixed by differentiating between failing because an array was expected and failing because an array of a primitive type was expected.
Reviewed-by: dholmes, ctornqvi, lfoltan
! src/share/vm/prims/jvm.cpp
+ test/runtime/reflect/ArrayGetIntException.java
More information about the jdk9-hs-rt-changes
mailing list