< prev index next >

src/hotspot/share/classfile/classLoader.cpp

Print this page
@@ -201,11 +201,11 @@
  
      // Fully qualified class names should not contain a 'L'.
      // 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 (*start == JVM_SIGNATURE_CLASS) {
+     if (*start == JVM_SIGNATURE_CLASS || *start == JVM_SIGNATURE_PRIMITIVE_OBJECT) {
        if (bad_class_name != nullptr) {
          *bad_class_name = true;
        }
        return nullptr;
      }
< prev index next >