Failed
org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0054 - 10 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
test0054 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in Y.java (at line 3)\n return new Y<W>();\n ^\n Redundant specification of type arguments <W>\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in Y.java (at line 3)\n return new Y<W>();\n ^\n Redundant specification of type arguments <W>\n ----------\n ]>
Stacktrace
junit.framework.ComparisonFailure: test0054 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in Y.java (at line 3)\n return new Y<W>();\n ^\n Redundant specification of type arguments <W>\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in Y.java (at line 3)\n return new Y<W>();\n ^\n Redundant specification of type arguments <W>\n ----------\n ]> at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0054(GenericsRegressionTest_1_7.java:2283)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7#test0054 - 10 Y.java [ public class Y<V> { public static <W extends ABC> Y<W> make(Class<W> clazz) { return new Y<W>(); } } class ABC{} ] Full results sent to /tmp/comptest/run.1584245034298/10.0.2_20200315_040443.txt
Standard Error
----------------------------------------