Failed

org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test0382 - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 10 builds (Since Failed#44 )
Took 1.8 sec.

Error Message

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

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

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

Stacktrace

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

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

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 1)\n
	public abstract class X extends Y implements I {}\n
	                      ^\n
Name clash: The method foo(Class<? extends String>) of type Y has the same erasure as foo(Class<String>) of type I but does not override it\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test0382(GenericTypeTest.java:11511)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest#test0382 - 12
X.java [
public abstract class X extends Y implements I {}
interface I { void foo(Class<String> s); }
class Y { void foo(Class<? extends String> s) {} }

]


Full results sent to /tmp/comptest/run.1573297474160/12_20191109_110435.txt

Standard Error

--- javac err: ---
X.java:1: error: X is not abstract and does not override abstract method foo(Class<? extends String>) in I
public class X extends Y implements I {}
       ^
1 error

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