hotspot/src/share/vm/prims/jniCheck.cpp
changeset 18942 705506c1bf49
parent 18937 34f568c7e7ca
child 20387 df9f9f220120
--- 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);
   }
 }