提交 31bda49d 编写于 作者: D dholmes

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

Reviewed-by: dcubed, fparain, dholmes
Contributed-by: NDavid Simms <david.simms@oracle.com>
上级 07b44f91
...@@ -317,12 +317,8 @@ check_primitive_array_type(JavaThread* thr, jarray jArray, BasicType elementType ...@@ -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);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册