changeset 4988:c29568b733d2

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>
author dholmes
date Thu, 18 Jul 2013 06:47:15 -0400
parents 6388dbc4b7ca
children 5e3b6f79d280 248c459b2b75
files src/share/vm/prims/jniCheck.cpp
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/jniCheck.cpp	Wed Jul 17 17:14:50 2013 -0700
+++ b/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);
   }
 }