diff -r 45071514f87a -r 8237a91c1cca src/hotspot/share/runtime/reflection.cpp --- a/src/hotspot/share/runtime/reflection.cpp Tue Apr 03 10:27:46 2018 +0200 +++ b/src/hotspot/share/runtime/reflection.cpp Tue Apr 03 13:15:27 2018 +0200 @@ -418,7 +418,7 @@ assert(lower_dim->is_array_klass(), "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; }