Bug 30856 - 1.4 compliant mode should consider abstract method matches
Summary: 1.4 compliant mode should consider abstract method matches
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-04 06:42 EST by Philipe Mulet CLA
Modified: 2003-02-11 06:18 EST (History)
0 users

See Also:


Attachments

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