Failed

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

Failing for the past 5 builds (Since Failed#105 )
Took 0.61 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 - 10
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 /tmp/comptest/run.1570939403540/10.0.2_20191013_040324.txt

Standard Error

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