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 77352 - Override Methods confused by Generics
Summary: Override Methods confused by Generics
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-03 21:28 UTC by _ gtzabari
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 _ gtzabari 2006-06-03 21:28:29 UTC
dev build 200605211800

I have a class that implements two interfaces. The first requires it to implement:

public Configuration getConfiguration(Class<? extends Image> clazz);

the second requires it to implement:

public Configuration getConfiguration(Class<? extends Specification> clazz);

The class implements the first but not the second -- so when I try compiling it
I get a compiler error. When I run Override Methods it does not see the need to
add latter method at all. My guess is that type-erasure comes into play and the
wizard thinks that the method is already implemented even though it is not.
Comment 1 Jan Lahoda 2007-02-14 14:18:47 UTC
Dusan, is it still valid for the new builds?
Comment 2 Dusan Balek 2007-02-14 15:22:23 UTC
Fixed.

Removing ui/OverridePanel.java;
/cvs/java/editor/src/org/netbeans/modules/java/editor/codegen/ui/OverridePanel.java,v
 <--  OverridePanel.java
new revision: delete; previous revision: 1.2
done
RCS file:
/cvs/java/editor/src/org/netbeans/modules/java/editor/codegen/ui/ImplementOverridePanel.form,v
done
Checking in ui/ImplementOverridePanel.form;
/cvs/java/editor/src/org/netbeans/modules/java/editor/codegen/ui/ImplementOverridePanel.form,v
 <--  ImplementOverridePanel.form
initial revision: 1.1
done
Removing ui/OverridePanel.form;
/cvs/java/editor/src/org/netbeans/modules/java/editor/codegen/ui/OverridePanel.form,v
 <--  OverridePanel.form
new revision: delete; previous revision: 1.1
done
RCS file:
/cvs/java/editor/src/org/netbeans/modules/java/editor/codegen/ui/ImplementOverridePanel.java,v
done
Checking in ui/ImplementOverridePanel.java;
/cvs/java/editor/src/org/netbeans/modules/java/editor/codegen/ui/ImplementOverridePanel.java,v
 <--  ImplementOverridePanel.java
initial revision: 1.1
done
Removing OverrideMethodGenerator.java;
/cvs/java/editor/src/org/netbeans/modules/java/editor/codegen/OverrideMethodGenerator.java,v
 <--  OverrideMethodGenerator.java
new revision: delete; previous revision: 1.3
done
RCS file:
/cvs/java/editor/src/org/netbeans/modules/java/editor/codegen/ImplementOverrideMethodGenerator.java,v
done
Checking in ImplementOverrideMethodGenerator.java;
/cvs/java/editor/src/org/netbeans/modules/java/editor/codegen/ImplementOverrideMethodGenerator.java,v
 <--  ImplementOverrideMethodGenerator.java
initial revision: 1.1
done
Checking in GeneratorUtils.java;
/cvs/java/editor/src/org/netbeans/modules/java/editor/codegen/GeneratorUtils.java,v
 <--  GeneratorUtils.java
new revision: 1.7; previous revision: 1.6
done
Checking in Bundle.properties;
/cvs/java/editor/src/org/netbeans/modules/java/editor/codegen/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.4; previous revision: 1.3
done
Checking in GenerateCodeAction.java;
/cvs/java/editor/src/org/netbeans/modules/java/editor/codegen/GenerateCodeAction.java,v
 <--  GenerateCodeAction.java
new revision: 1.6; previous revision: 1.5
done
Comment 3 Quality Engineering 2007-09-20 12:42:33 UTC
Reorganization of java component