Bug 17046

Summary: Inner class reference to Outer class method not recognized
Product: [Eclipse Project] JDT Reporter: Ryan Cooper <ryan_cooper>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 F2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Ryan Cooper CLA 2002-05-22 16:18:11 EDT
Build: 20020521

Steps:
1. Select a reference to an outer class method in an inner class
2. Press F3

Normally upon pressing F3, an editor is opened to show the method being 
referenced (or the method is shown in the current editor if it belongs to the 
same class as the method from which it is called). In this case, however, 
nothing happens, except a little beep sound.
Comment 1 Erich Gamma CLA 2002-05-26 18:30:08 EDT
moving to JDT CORE for initial code resolve investigation
Comment 2 Philipe Mulet CLA 2002-05-27 05:50:26 EDT
Ryan - please provide more steps.

Cannot reproduce. Works fine on:


public class X {
	void foo(){
	}
	void bar(){
		new Runnable(){
			public void run() {
				foo();  // select 'foo' and press F3
			}
		};
	}
}
 
Comment 3 Ryan Cooper CLA 2002-05-27 07:38:34 EDT
I can't reproduce the problem now either. It occured previously using inner 
classes like this one:

public class Test {

	private void test() {
		int i = 1;	
	}

	private class TestInner {
		public TestInner() {}
		private void testInner() {
			test();	
		}
	}
}
Comment 4 Philipe Mulet CLA 2002-05-28 07:30:09 EDT
Cannot reproduce. Closing
Comment 5 Kent Johnson CLA 2002-06-03 12:02:46 EDT
Verified.