JDK-4954586 : inner class file is not generated
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2003-11-14
  • Updated: 2017-07-14
  • Resolved: 2017-07-14
Related Reports
Relates :  
Description
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. 

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
17-07-2004

PUBLIC COMMENTS ...
17-07-2004

EVALUATION Agreed. ###@###.### 2003-11-14 Or don't refer to the anonymous class. ###@###.### 10/25/04 22:34 GMT
14-11-2003