Community
Participate
Working Groups
On eclipse 3.1M4 following code in Java 1.5 generates a runtime error ----------------------- public interface Interface { Number getValue(); } ----------------------- public class C1 { public Double getValue() { return Math.random(); } } ----------------------- public class C2 extends C1 implements Interface{ public static void main(String[] args) { Interface i=new C2(); System.out.println(i.getValue()); } } execution produces Exception in thread "main" java.lang.AbstractMethodError: C2.getValue()Ljava/lang/Number; at C2.main(C2.java:12) but run normally when compiled by Sun JavaC
Created attachment 18465 [details] Test source code
Works with 3.1M5a.
Indeed, works fine in latest. Added MethodVerifyTest#test047.