Bug 23593

Summary: search: strange method reference match found
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Adam Kiezun CLA 2002-09-16 06:02:36 EDT
I think it's quite strange that the method invocation in Test::test should be 
reported as a reference match to S::f()

public class S implements I {
  	public void f() {}
}
class S1 implements I{
  	public void f() {}
}
interface I {
	void f();
}

class Test{
	void test(){
		I i= new S1();
		i.f();
	}
}
Comment 1 Jerome Lanneluc CLA 2002-10-03 09:22:11 EDT
We cannot staticaly determine that 'i' is a S1 and not a S. If you had this 
code:
  I i= new S();
  i.f();
then you would want to find the reference to S.f().

OK to close?
Comment 2 Jerome Lanneluc CLA 2002-10-07 08:40:44 EDT
Closing.