Bug 39911 - cannot navigate to private methods in anonymous classes
Summary: cannot navigate to private methods in anonymous classes
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 19839
Blocks:
  Show dependency tree
 
Reported: 2003-07-11 05:57 EDT by Nikolay Metchev CLA
Modified: 2003-10-30 09:11 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.