Bug 42365

Summary: Open on selection does not work for method inside interface
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description David Audel CLA 2003-09-02 04:52:11 EDT
1) create the x.jar file with the following classes
I.class
public interface I {
	void foo();
}

X.class
public abstract class X implements I{

}

Y.class
public class Y extends X {
	public void foo() {
	}
}
2) attache source file to this jar
3) create the following class
Z.java
public class Z {
	public static void main(String[] args) {
		Y y = new Y();
		((X)y).foo();//select foo
	}
}
4) select 'foo' in the commented line
5) do F3

X.class is selected but it must be I.class

The problem does not happen if I, X and Y are in source file.
Comment 1 David Audel CLA 2003-12-11 11:12:35 EST
The problem does not occurs in build 20031211

Test added (ResolveTests#testMethodDeclarationInInterface)

Fixed.
Comment 2 Frederic Fusier CLA 2003-12-16 06:00:19 EST
Verified with build I200312160010
Comment 3 David Audel CLA 2003-12-16 06:34:21 EST
Change status
Comment 4 David Audel CLA 2003-12-16 06:35:08 EST
Change status to workforme