-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.4.2
-
generic
-
generic
In the attached java program, there are two inner classes, one of them anonymous.
The class file for the anonymous inner class is not generated because the class can never be reached.
However, for the non-anonynous inner class, javac generates a wrapper
for its constructor, using the anonymous inner class as an argument.
If the VM tries to eagerly load the anonymous inner class, a ClassNotFoundException is thrown. (see 4944478)
It would be friendlier if javac generated the class.
The class file for the anonymous inner class is not generated because the class can never be reached.
However, for the non-anonynous inner class, javac generates a wrapper
for its constructor, using the anonymous inner class as an argument.
If the VM tries to eagerly load the anonymous inner class, a ClassNotFoundException is thrown. (see 4944478)
It would be friendlier if javac generated the class.
- relates to
-
JDK-4944478 eager class loading causes server VM to throw exception
- Resolved