Bug 30856

Summary: 1.4 compliant mode should consider abstract method matches
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2003-02-04 06:42:10 EST
Build 20030129

The following code should compile clear in 1.4 mode:

==================== pa/X.java
package pa;
public class X {
	void foo(float f, int i) {}
} 
==================== pb/Y.java
package pb;
public abstract class Y extends I {
        void bar() {   foo(1, 2);  }  // should pick I.foo(int, float)
} 
interface I {
	void foo(int i, float f) {}
}
Comment 1 Philipe Mulet CLA 2003-02-04 07:27:53 EST
Fixed. Case where exactly one match was found, did not run through interface 
methods (no default abstract in 1.4).
Comment 2 Philipe Mulet CLA 2003-02-11 06:16:36 EST
Actually, Y should extends X and implement I.
I.foo shouldn't have a body.
Comment 3 David Audel CLA 2003-02-11 06:18:53 EST
Verified.