Failed
org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test0382 - 11 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
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:11503)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest#test0382 - 11 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/genie.jdt/comptest/run.1565427784609/11_20190810_050312.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 ----------------------------------------