8020697: jniCheck.cpp:check_is_obj_array asserts on TypeArrayKlass::cast(aOop->klass())

Reviewed-by: dcubed, fparain, dholmes
This commit is contained in:
David Simms 2013-07-18 06:47:15 -04:00 committed by David Holmes
parent 3c7f50e9f2
commit 71ca890b66

View file

@ -317,12 +317,8 @@ check_primitive_array_type(JavaThread* thr, jarray jArray, BasicType elementType
static inline void static inline void
check_is_obj_array(JavaThread* thr, jarray jArray) { check_is_obj_array(JavaThread* thr, jarray jArray) {
BasicType array_type; arrayOop aOop = check_is_array(thr, jArray);
arrayOop aOop; if (!aOop->is_objArray()) {
aOop = check_is_array(thr, jArray);
array_type = TypeArrayKlass::cast(aOop->klass())->element_type();
if (array_type != T_OBJECT) {
ReportJNIFatalError(thr, fatal_object_array_expected); ReportJNIFatalError(thr, fatal_object_array_expected);
} }
} }