Regression

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 Failed#53 )
Took 0.88 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/comptest/run.1573297474160/12_20191109_110435.txt

Standard Error

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