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 - Create new class, override abstract, IDE repeats method
Summary: Create new class, override abstract, IDE repeats method
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: -S1S-
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-08 16:14 UTC by jgordon
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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