Community
Participate
Working Groups
From EC: ------------------------ In the latest stable build (20020321), I started getting compile errors and there have not been any changes to my code. I have two classes that look like this: public interface FooInterface { public boolean foo(int a); public boolean bar(int a); } abstract public class FooClass implements FooInterface { public boolean foo(int a, int b) { return true; } public int test(int a) { boolean result = foo(a); // <-- THIS LINE FAILS TO COMPILE if(result) return 1; else return 0; } } Problem: There is a compiler error that says: "The method foo(int, int) in the type FooClass is not applicable for the arguments (int)" However, this IS legal since FooClass is abstract and it inherits this method from FooInterface Is this already a known issue? Both the Sun JDK and the previous stable build of eclipse handled this correctly. - Mike G.
This only occurs in 1.4 mode due to some name lookup refinement which are in trouble due to the lack of default abstract methods in 1.4 mode.
Thanks for the fix Kent. Fixed