< prev index next >

src/share/vm/runtime/reflection.cpp

Print this page

        

@@ -402,11 +402,11 @@
   } else {
     Klass* lower_dim = ArrayKlass::cast(klass)->lower_dimension();
     assert(lower_dim->oop_is_array(), "just checking");
     result2 = lower_dim->java_mirror();
   }
-  assert(result == result2, "results must be consistent");
+  assert(oopDesc::equals(result, result2), "results must be consistent");
 #endif //ASSERT
   return result;
 }
 
 
< prev index next >