hotspot/src/share/vm/prims/jniCheck.cpp
changeset 13952 e3cf184080bc
parent 13728 882756847a04
child 14488 ab48109f7d1b
equal deleted inserted replaced
13918:b01a48301e67 13952:e3cf184080bc
   288   if (aOop == NULL || !aOop->is_array())
   288   if (aOop == NULL || !aOop->is_array())
   289     ReportJNIFatalError(thr, fatal_non_array);
   289     ReportJNIFatalError(thr, fatal_non_array);
   290 
   290 
   291   if (elementType != -1) {
   291   if (elementType != -1) {
   292     if (aOop->is_typeArray()) {
   292     if (aOop->is_typeArray()) {
   293       BasicType array_type = typeArrayKlass::cast(aOop->klass())->element_type();
   293       BasicType array_type = TypeArrayKlass::cast(aOop->klass())->element_type();
   294       if (array_type != elementType)
   294       if (array_type != elementType)
   295         ReportJNIFatalError(thr, fatal_element_type_mismatch);
   295         ReportJNIFatalError(thr, fatal_element_type_mismatch);
   296       } else if (aOop->is_objArray()) {
   296       } else if (aOop->is_objArray()) {
   297         if ( T_OBJECT != elementType)
   297         if ( T_OBJECT != elementType)
   298           ReportJNIFatalError(thr, fatal_object_array_expected);
   298           ReportJNIFatalError(thr, fatal_object_array_expected);