Failed

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

Failing for the past 4 builds (Since Failed#130 )
Took 0.66 sec.

Error Message

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 7)\n
 X<Number> x = new X<Number>(1);\n
                   ^\n
Redundant specification of type arguments <Number>\n
----------\n
2. ERROR in X.java (at line 8)\n
 X<String> x2 = new X<String>("SUCCESS");\n
                    ^\n
Redundant specification of type arguments <String>\n
----------\n
3. ERROR in X.java (at line 9)\n
 X<String> x22 = new X<String>(1,"SUCCESS");\n
                     ^\n
Redundant specification of type arguments <String>\n
----------\n
4. ERROR in X.java (at line 10)\n
 X<Integer> x3 = new X<Integer>(1);\n
                     ^\n
Redundant specification of type arguments <Integer>\n
----------\n
5. ERROR in X.java (at line 11)\n
 String s = foo(new X<String>("aaa"));\n
                    ^\n
Redundant specification of type arguments <String>\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 7)\n
 X<Number> x = new X<Number>(1);\n
                   ^\n
Redundant specification of type arguments <Number>\n
----------\n
2. ERROR in X.java (at line 8)\n
 X<String> x2 = new X<String>("SUCCESS");\n
                    ^\n
Redundant specification of type arguments <String>\n
----------\n
3. ERROR in X.java (at line 9)\n
 X<String> x22 = new X<String>(1,"SUCCESS");\n
                     ^\n
Redundant specification of type arguments <String>\n
----------\n
4. ERROR in X.java (at line 10)\n
 X<Integer> x3 = new X<Integer>(1);\n
                     ^\n
Redundant specification of type arguments <Integer>\n
----------\n
5. ERROR in X.java (at line 11)\n
 String s = foo(new X<String>("aaa"));\n
                    ^\n
Redundant specification of type arguments <String>\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 7)\n
	X<Number> x = new X<Number>(1);\n
	                  ^\n
Redundant specification of type arguments <Number>\n
----------\n
2. ERROR in X.java (at line 8)\n
	X<String> x2 = new X<String>("SUCCESS");\n
	                   ^\n
Redundant specification of type arguments <String>\n
----------\n
3. ERROR in X.java (at line 9)\n
	X<String> x22 = new X<String>(1,"SUCCESS");\n
	                    ^\n
Redundant specification of type arguments <String>\n
----------\n
4. ERROR in X.java (at line 10)\n
	X<Integer> x3 = new X<Integer>(1);\n
	                    ^\n
Redundant specification of type arguments <Integer>\n
----------\n
5. ERROR in X.java (at line 11)\n
	String s = foo(new X<String>("aaa"));\n
	                   ^\n
Redundant specification of type arguments <String>\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 7)\n
	X<Number> x = new X<Number>(1);\n
	                  ^\n
Redundant specification of type arguments <Number>\n
----------\n
2. ERROR in X.java (at line 8)\n
	X<String> x2 = new X<String>("SUCCESS");\n
	                   ^\n
Redundant specification of type arguments <String>\n
----------\n
3. ERROR in X.java (at line 9)\n
	X<String> x22 = new X<String>(1,"SUCCESS");\n
	                    ^\n
Redundant specification of type arguments <String>\n
----------\n
4. ERROR in X.java (at line 10)\n
	X<Integer> x3 = new X<Integer>(1);\n
	                    ^\n
Redundant specification of type arguments <Integer>\n
----------\n
5. ERROR in X.java (at line 11)\n
	String s = foo(new X<String>("aaa"));\n
	                   ^\n
Redundant specification of type arguments <String>\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7.test0052b(GenericsRegressionTest_1_7.java:2111)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_7#test0052b - 1.8
X.java [
public class X<E> {
	 E eField;
	 E get() { return this.eField; }
    X(E e) {}
    X(int e, String e2) {}
    public static void main(String[] args) {
        X<Number> x = new X<Number>(1);
        X<String> x2 = new X<String>("SUCCESS");
        X<String> x22 = new X<String>(1,"SUCCESS");
        X<Integer> x3 = new X<Integer>(1);
        String s = foo(new X<String>("aaa"));
        String s2 = foo(new X<String>(1,"aaa"));
	}
    static String foo(X<String> x) {
		return x.get();
    }
}

]


Full results sent to /tmp/comptest/run.1575090299186/1.8.0_202_20191130_050502.txt

Standard Error

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