Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test043_1 - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since #44 )
Took 0.89 sec.

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 - 12
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.1565715170219/12_20190813_125251.txt

Standard Error

----------------------------------------