Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 39911

Summary: cannot navigate to private methods in anonymous classes
Product: [Eclipse Project] JDT Reporter: Nikolay Metchev <nikolaymetchev>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.0   
Target Milestone: 3.0 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on: 19839    
Bug Blocks:    

Description Nikolay Metchev CLA 2003-07-11 05:57:30 EDT
--------------------------------------------------------
public class Test2 
{
   private final A field = new A()
   {
      public void methodA()
      {
         methodB(); <--- place cursor on this method
      }
      
      private void methodB()
      {
         
      }
   };
   public interface A
   {
      public void methodA();
   }
}
--------------------------------------------------------

if you place the cursor on the invocation of methodB() and press F3 you 
get "bing" and are not taken to the declaration of the method!
Comment 1 David Audel CLA 2003-07-15 04:59:43 EDT
SelectionEngine works good. But SelectionRequestor cannot return result because 
there is no java element for an anonymous type.
Comment 2 David Audel CLA 2003-07-15 05:02:37 EDT
Can be fixed when bug 19839 will be fixed.

Later.
Comment 3 Philipe Mulet CLA 2003-10-30 04:32:14 EST
does this work now ?
Comment 4 Nikolay Metchev CLA 2003-10-30 04:34:27 EST
works for me in M4
Comment 5 Jerome Lanneluc CLA 2003-10-30 09:11:53 EST
Verified this also works with latest. Closing.