Community
Participate
Working Groups
The following classes compile using JDK 1.5.0 final: public class Test { public Object getItem() { return null; } } public class GoodTest extends Test { public String getItem() { return null; } } public class BadTest extends Test { public Comparable getItem() { return null; } } In Eclipse, however, BadTest gives the following compile error for getItem(): The return type is incompatible with Test.getItem() This seems to consistently happen when a method returning an Object is overridden with a method returning an interface, even though it is valid java 1.5 code. I am using Eclipse 3.1M2.
Fixed Added test341().
Verified for 3.1M3 with build I20041102