--- old/src/share/vm/classfile/javaClasses.cpp 2016-09-09 14:12:56.444262706 +0200 +++ new/src/share/vm/classfile/javaClasses.cpp 2016-09-09 14:12:56.372262703 +0200 @@ -318,6 +318,9 @@ } #ifdef ASSERT + // This check is too strict because the input symbol does not necessarily contain valid UTF8. + // For example, it may be created with arbitrary content via jni_FindClass. + /* { ResourceMark rm; const char* expected = symbol->as_utf8(); @@ -327,6 +330,7 @@ ShouldNotReachHere(); } } + */ #endif return h_obj;