Failed
org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test043_1 - 11 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
test043_1 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in X.java (at line 4)\n abstract class E<A, B> extends C<A> implements I<B> {}\n ^\n Name clash: The method id(A) of type C<A> has the same erasure as id(B) of type I<B> but does not override it\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in X.java (at line 4)\n abstract class E<A, B> extends C<A> implements I<B> {}\n ^\n Name clash: The method id(A) of type C<A> has the same erasure as id(B) of type I<B> but does not override it\n ----------\n ]>
Stacktrace
junit.framework.ComparisonFailure: test043_1 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in X.java (at line 4)\n abstract class E<A, B> extends C<A> implements I<B> {}\n ^\n Name clash: The method id(A) of type C<A> has the same erasure as id(B) of type I<B> but does not override it\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in X.java (at line 4)\n abstract class E<A, B> extends C<A> implements I<B> {}\n ^\n Name clash: The method id(A) of type C<A> has the same erasure as id(B) of type I<B> but does not override it\n ----------\n ]> at org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test043_1(MethodVerifyTest.java:3015)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest#test043_1 - 11 X.java [ public class X { void test(E<Integer,Integer> e) { e.id(Integer.valueOf(1)); } } class C<A> { public void id(A x) {} } interface I<B> { void id(B x); } abstract class E<A, B> extends C<A> implements I<B> {} ] Full results sent to /tmp/genie.jdt/comptest/run.1565427784609/11_20190810_050312.txt
Standard Error
----------------------------------------