This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Create a new class xxx based on javax.swing.filechooser.FileFilter. Override the two abstract methods (accept(File) and getDescription()). Press 'Finish'. Another dialog pops up saying that the method accept(File) needs to be overridden as it is an abstract method. Press 'Process'. The class now has two methods accept(File). There is an error, it cannot resolve File (should be java.io.File). You can press 'Cancel' on the second dialog, and if you are quick enough and change the File to java.io.File the second dialog doesn't popup. I believe that it is the parser correctly not seeing accept (java.io.File) and attempting to be helpfull. The class wizard should correctly add java.io to the beginning of File or something else to stop the parser from putting a second, incorrect, method in the class.
The Wizard does a simple check for java.lang and uses fully qualified names for other types. Fixed in trunk: /cvs/java/src/org/netbeans/modules/java/tools/InheritanceSupport.java,v <-- InheritanceSupport.java new revision: 1.15; previous revision: 1.14
Verified in trunk