Mercurial > hg > truffle
comparison src/share/vm/prims/jniCheck.cpp @ 6831:d8ce2825b193
8000213: NPG: Should have renamed arrayKlass and typeArrayKlass
Summary: Capitalize these metadata types (and objArrayKlass)
Reviewed-by: stefank, twisti, kvn
author | coleenp |
---|---|
date | Sat, 29 Sep 2012 06:40:00 -0400 |
parents | da91efe96a93 |
children | 070d523b96a7 |
comparison
equal
deleted
inserted
replaced
6811:1b582b1bf7cb | 6831:d8ce2825b193 |
---|---|
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); |