Skip to content

Failed

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

Failing for the past 22 builds (Since #111 )
Took 1 sec.

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 - 10
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 /tmp/comptest/run.1584245034298/10.0.2_20200315_040443.txt

Standard Error

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