changeset 18942:705506c1bf49

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 c597c9d69fbf
children 7d0ef675e808 85b1168d9b81
files hotspot/src/share/vm/prims/jniCheck.cpp
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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);
   }
 }