Skip to content

Failed

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

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

Error Message

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 7)\n
 : new ArrayList<Object>();\n
       ^^^^^^^^^\n
Redundant specification of type arguments <Object>\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 7)\n
 : new ArrayList<Object>();\n
       ^^^^^^^^^\n
Redundant specification of type arguments <Object>\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 7)\n
	: new ArrayList<Object>();\n
	      ^^^^^^^^^\n
Redundant specification of type arguments <Object>\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 7)\n
	: new ArrayList<Object>();\n
	      ^^^^^^^^^\n
Redundant specification of type arguments <Object>\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0058(GenericsRegressionTest_1_7.java:2520)

Standard Output

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

public class X {
    public void test(boolean param) {
        ArrayList<?> ls = (param) 
        		? new ArrayList<String>()
        		: new ArrayList<Object>();
        		
    }
}

]


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

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