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 247112 - Implemented method from interface not shown
Summary: Implemented method from interface not shown
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-15 08:35 UTC by Leos.Bitto
Modified: 2014-09-15 08:35 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leos.Bitto 2014-09-15 08:35:35 UTC
Here is a simplified version of a valid Java code (three files):

-----------------------------------------------------------------------
public interface SomeInterface {
    void doSomething();
}
-----------------------------------------------------------------------
public class ParentClass {
    public void doSomething() {}
}
-----------------------------------------------------------------------
public class ChildClass extends ParentClass implements SomeInterface {}
-----------------------------------------------------------------------

When I open SomeInterface, there is no icon "I" next to the method doSomething, it does not show that this method is implemented in ChildClass (inherited from SomeClass). The same problem is when I use alt+f7 and choose "Find Overriding Method" and "Include overloaded methods" - nothing is found.

When I could change the code to "class ParentClass implements SomeInterface" NetBeans would work fine. However, that would have unwanted consequences - there would be two classes implementing SomeInterface, which would confuse the dependency injection framework (and changing that would bring another issues).