Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0057 - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 31 builds (Since Failed #44 )
Took 0.9 sec.

Error Message

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 3)\n
 Pair<Double, Integer> p = new InvertedPair<Integer, Double>();\n
                               ^^^^^^^^^^^^\n
Redundant specification of type arguments <Integer, Double>\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 3)\n
 Pair<Double, Integer> p = new InvertedPair<Integer, Double>();\n
                               ^^^^^^^^^^^^\n
Redundant specification of type arguments <Integer, Double>\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 3)\n
	Pair<Double, Integer> p = new InvertedPair<Integer, Double>();\n
	                              ^^^^^^^^^^^^\n
Redundant specification of type arguments <Integer, Double>\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 3)\n
	Pair<Double, Integer> p = new InvertedPair<Integer, Double>();\n
	                              ^^^^^^^^^^^^\n
Redundant specification of type arguments <Integer, Double>\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0057(GenericsRegressionTest_1_7.java:2492)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7#test0057 - 12
X.java [
public class X {
	void test() {
		Pair<Double, Integer> p = new InvertedPair<Integer, Double>();
	}
}
class Pair<A, B> {
}
class InvertedPair<A, B> extends Pair<B, A> {
}

]


Full results sent to /tmp/comptest/run.1584180334688/12_20200314_100536.txt

Standard Error

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