mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
8020697: jniCheck.cpp:check_is_obj_array asserts on TypeArrayKlass::cast(aOop->klass())
Reviewed-by: dcubed, fparain, dholmes
This commit is contained in:
parent
3c7f50e9f2
commit
71ca890b66
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue