Failed
org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0052c - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
test0052c - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in X.java (at line 4)\n X<Integer> x = new X<Integer>("","");\n ^\n Redundant specification of type arguments <Integer>\n ----------\n 2. ERROR in X.java (at line 8)\n return new X<Integer>("","");\n ^\n Redundant specification of type arguments <Integer>\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in X.java (at line 4)\n X<Integer> x = new X<Integer>("","");\n ^\n Redundant specification of type arguments <Integer>\n ----------\n 2. ERROR in X.java (at line 8)\n return new X<Integer>("","");\n ^\n Redundant specification of type arguments <Integer>\n ----------\n ]>
Stacktrace
junit.framework.ComparisonFailure: test0052c - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in X.java (at line 4)\n X<Integer> x = new X<Integer>("","");\n ^\n Redundant specification of type arguments <Integer>\n ----------\n 2. ERROR in X.java (at line 8)\n return new X<Integer>("","");\n ^\n Redundant specification of type arguments <Integer>\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in X.java (at line 4)\n X<Integer> x = new X<Integer>("","");\n ^\n Redundant specification of type arguments <Integer>\n ----------\n 2. ERROR in X.java (at line 8)\n return new X<Integer>("","");\n ^\n Redundant specification of type arguments <Integer>\n ----------\n ]> at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0052c(GenericsRegressionTest_1_7.java:2191)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7#test0052c - 1.8 X.java [ public class X<E> { X(String abc, String def) {} void foo() { X<Integer> x = new X<Integer>("",""); foo3(new X<Integer>("","")); } X<Integer> foo2() { return new X<Integer>("",""); } void foo3(X<Integer> x) {} } ] Full results sent to /home/jenkins/agent/workspace/eclipse.jdt.core-run.javac-1.8/tmp/comptest/run.1584479137560/1.8.0_202_20200317_210541.txt
Standard Error
----------------------------------------