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 66272 - Override and Implement Method suggests final methods
Summary: Override and Implement Method suggests final methods
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-07 17:56 UTC by Chris Webster
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 Chris Webster 2005-10-07 17:56:56 UTC
Consider the following scenario:

public interface SomeIntf {
  void m();
}

public class SomeIntfImpl implements SomeIntf {
  public final void m();
}

then I create a new class

public class NewC extends SomeIntfImpl {
  
}

If I used the Override methods capability, I am presented with a list of
choices, which includes m which cannot be overridden as this is final.
Comment 1 Martin Matula 2005-10-10 09:52:12 UTC
Dan, please look at it.
Comment 2 Daniel Prusa 2005-10-10 15:08:50 UTC
Fixed in trunk.

/cvs/java/src/org/netbeans/modules/java/tools/JMIInheritanceSupport.java
new revision: 1.17; previous revision: 1.16
Comment 3 Milan Kubec 2005-12-20 12:29:25 UTC
Verified.