Skip to content

Failed

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

Failing for the past 1 build (Since #44 )
Took 1.4 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:11503)

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/genie.jdt/comptest/run.1565715170219/12_20190813_125251.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

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