Bug 17046 - Inner class reference to Outer class method not recognized
Summary: Inner class reference to Outer class method not recognized
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 F2   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-22 16:18 EDT by Ryan Cooper CLA
Modified: 2002-06-03 12:02 EDT (History)
0 users

See Also:


Attachments

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