Details
Description
IN allocNBytes(), if the calloc fails, JAVA_ERROR does a long jump.
In the case of loading a class this long jump is back to createInternalClass().
If you follow it up the call stack it will return through
LoadClassFromFile
LoadClassLocally
FindClassFromClass
Locked_InitializeClass
Locked_InitializeClass() reports the error as a NoClassDefFoundError.
This is misleading to a user who spends time figuring out if their class
path is incorrect. Although this may not be an issue for ports
of the VM to systems such as solaris and win32 which will rarely
run out of memory, it is an issue for ports to smaller memory
configuration OS's.
In the case of loading a class this long jump is back to createInternalClass().
If you follow it up the call stack it will return through
LoadClassFromFile
LoadClassLocally
FindClassFromClass
Locked_InitializeClass
Locked_InitializeClass() reports the error as a NoClassDefFoundError.
This is misleading to a user who spends time figuring out if their class
path is incorrect. Although this may not be an issue for ports
of the VM to systems such as solaris and win32 which will rarely
run out of memory, it is an issue for ports to smaller memory
configuration OS's.
Attachments
Issue Links
- duplicates
-
JDK-4059724 Compiler error on comilation of BDK - nmake clean all
- Closed
-
JDK-4059889 java.lang.NoClassDefFoundError (javac compilation error)
- Closed