Skip to content

Failed

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

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

Error Message

test166 - Eclipse found error(s) but Javac did not find any.
----------- Expected ------------

------------ but was ------------
----------\n
1. ERROR in X.java (at line 1)\n
 class X extends A implements I<String> {}\n
       ^\n
Name clash: The method foo(Object) of type A has the same erasure as foo(T) of type I<T> but does not override it\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 1)\n
 class X extends A implements I<String> {}\n
       ^\n
Name clash: The method foo(Object) of type A has the same erasure as foo(T) of type I<T> but does not override it\n
----------\n
]>

Stacktrace

junit.framework.ComparisonFailure: 
test166 - Eclipse found error(s) but Javac did not find any.
----------- Expected ------------

------------ but was ------------
----------\n
1. ERROR in X.java (at line 1)\n
	class X extends A implements I<String> {}\n
	      ^\n
Name clash: The method foo(Object) of type A has the same erasure as foo(T) of type I<T> but does not override it\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 1)\n
	class X extends A implements I<String> {}\n
	      ^\n
Name clash: The method foo(Object) of type A has the same erasure as foo(T) of type I<T> but does not override it\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test166(MethodVerifyTest.java:10020)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest#test166 - 12
X.java [
class X extends A implements I<String> {}
interface I<T> { void foo(T item); }
class A {
	public void foo(Object item) {}
	public void foo(String item) {}
}

]


Full results sent to /tmp/genie.jdt/comptest/run.1565715170219/12_20190813_125251.txt

Standard Error

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