8020697: jniCheck.cpp:check_is_obj_array asserts on TypeArrayKlass::cast(aOop->klass())
Reviewed-by: dcubed, fparain, dholmes
Contributed-by: David Simms <david.simms@oracle.com>
--- a/hotspot/src/share/vm/prims/jniCheck.cpp Wed Jul 17 17:14:50 2013 -0700
+++ b/hotspot/src/share/vm/prims/jniCheck.cpp Thu Jul 18 06:47:15 2013 -0400
@@ -317,12 +317,8 @@
static inline void
check_is_obj_array(JavaThread* thr, jarray jArray) {
- BasicType array_type;
- arrayOop aOop;
-
- aOop = check_is_array(thr, jArray);
- array_type = TypeArrayKlass::cast(aOop->klass())->element_type();
- if (array_type != T_OBJECT) {
+ arrayOop aOop = check_is_array(thr, jArray);
+ if (!aOop->is_objArray()) {
ReportJNIFatalError(thr, fatal_object_array_expected);
}
}