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.

Bug 27867

Summary: Create new class, override abstract, IDE repeats method
Product: java Reporter: jgordon <jgordon>
Component: UnsupportedAssignee: issues@java <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: -S1S-   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description jgordon 2002-10-08 16:14:55 UTC
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.
Comment 1 Svata Dedic 2003-01-09 18:24:24 UTC
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
Comment 2 Jan Becicka 2003-02-27 13:30:07 UTC
Verified in trunk