equal
deleted
inserted
replaced
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); |