Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0060 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 2 builds (Since #167 )
Took 0.71 sec.

Error Message

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 6)\n
 new ArrayList<>();\n
     ^^^^^^^^^\n
'<>' operator is not allowed for source level below 1.7\n
----------\n
2. ERROR in X.java (at line 6)\n
 new ArrayList<>();\n
     ^^^^^^^^^\n
Incorrect number of arguments for type ArrayList<E>; it cannot be parameterized with arguments <>\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 6)\n
 new ArrayList<>();\n
     ^^^^^^^^^\n
'<>' operator is not allowed for source level below 1.7\n
----------\n
2. ERROR in X.java (at line 6)\n
 new ArrayList<>();\n
     ^^^^^^^^^\n
Incorrect number of arguments for type ArrayList<E>; it cannot be parameterized with arguments <>\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 6)\n
	new ArrayList<>();\n
	    ^^^^^^^^^\n
'<>' operator is not allowed for source level below 1.7\n
----------\n
2. ERROR in X.java (at line 6)\n
	new ArrayList<>();\n
	    ^^^^^^^^^\n
Incorrect number of arguments for type ArrayList<E>; it cannot be parameterized with arguments <>\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 6)\n
	new ArrayList<>();\n
	    ^^^^^^^^^\n
'<>' operator is not allowed for source level below 1.7\n
----------\n
2. ERROR in X.java (at line 6)\n
	new ArrayList<>();\n
	    ^^^^^^^^^\n
Incorrect number of arguments for type ArrayList<E>; it cannot be parameterized with arguments <>\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0060(GenericsRegressionTest_1_7.java:2569)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7#test0060 - 1.8
X.java [
import java.util.ArrayList;
import java.util.List;

public class X {
	 public void foo() {
    	new ArrayList<>();
	 }
}

]


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

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