nmatt opened a new issue, #9455:
URL: https://github.com/apache/netbeans/issues/9455

   ### Apache NetBeans version
   
   Apache NetBeans 30
   
   ### What happened
   
   _Go to Implementation_ (Ctrl+Alt+B, or context menu > _Navigate_ > _Go to 
Implementation_) does not work on interface methods whose implementations are 
inherited from classes that themselves aren't declared to implement the 
interface (but subclasses are). The "Ⓘ" badges in the editor gutter are 
correspondingly missing.
   
   This makes it more difficult to locate method implementations from a call 
site that invokes the method from the interface type, and it makes it 
misleadingly look like there are no implementations of the method.
   
   ### Language / Project Type / NetBeans Component
   
   Java, Editor
   
   ### How to reproduce
   
   ```java
   class Example
   {
       interface A
       {
           CharSequence a();
       }
       
       interface B extends A
       {
           @Override
           String a();
   
           String b();
   
           String c();
       }
       
       static class AImpl implements A
       {
           @Override
           public String a() { return "a"; }
   
           public String b() { return "b"; }
       }
       
       static class BImpl extends AImpl implements B
       {
           public String c() { return "c"; }
       }
   }
   ```
   On B::a anb B::b, _Go to Implementation_ (Ctrl+Alt+B, or context menu > 
_Navigate_ > _Go to Implementation_) does not work, although these methods are 
implemented by AImpl (in the context of BImpl).
   
   In addition, no "Ⓘ" badge is shown on B::b, although interface B is fully 
implemented by BImpl.
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows
   
   ### JDK
   
   JDK 21
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to