--- old/src/hotspot/share/classfile/classLoader.cpp 2018-02-15 15:32:40.000000000 -0500 +++ new/src/hotspot/share/classfile/classLoader.cpp 2018-02-15 15:32:40.000000000 -0500 @@ -212,7 +212,7 @@ // Set bad_class_name to true to indicate that the package name // could not be obtained due to an error condition. // In this situation, is_same_class_package returns false. - if (*class_name_ptr == 'L' || *class_name_ptr == 'Q') { + if (*class_name_ptr == 'L') { if (bad_class_name != NULL) { *bad_class_name = true; }