A DESCRIPTION OF THE PROBLEM :
We found that when the loadClass(String name) function is called and the class name is empty, hotspot will report an error of “Illegal class name "" in class file”, which is inconsistent with other JVMs. (OpenJ9 will report “Exception in thread "main" java.lang.NoClassDefFoundError”)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the test case linked below.
https://drive.google.com/drive/folders/1JX3hKFnAoPMHzII71rVmZxf3YPW445ci?usp=sharing
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Exception in thread "main" java.lang.NoClassDefFoundError
ACTUAL -
Exception in thread "main" java.lang.ClassFormatError: Illegal class name "" in class file
We found that when the loadClass(String name) function is called and the class name is empty, hotspot will report an error of “Illegal class name "" in class file”, which is inconsistent with other JVMs. (OpenJ9 will report “Exception in thread "main" java.lang.NoClassDefFoundError”)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the test case linked below.
https://drive.google.com/drive/folders/1JX3hKFnAoPMHzII71rVmZxf3YPW445ci?usp=sharing
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Exception in thread "main" java.lang.NoClassDefFoundError
ACTUAL -
Exception in thread "main" java.lang.ClassFormatError: Illegal class name "" in class file