Failed

org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_9.testBug488663_013 - 10 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 15 builds (Since Failed#81 )
Took 0.75 sec.

Error Message

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 11)\n
 I<X> i = new I<X>() {\n
              ^\n
Redundant specification of type arguments <X>\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 11)\n
 I<X> i = new I<X>() {\n
              ^\n
Redundant specification of type arguments <X>\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 11)\n
	I<X> i = new I<X>() {\n
	             ^\n
Redundant specification of type arguments <X>\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 11)\n
	I<X> i = new I<X>() {\n
	             ^\n
Redundant specification of type arguments <X>\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_9.testBug488663_013(GenericsRegressionTest_9.java:382)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_9#testBug488663_013 - 10
X.java [
public class X {
	String name;
	public X(String name) {
		this.name = name;
	}
	String name() {
		return this.name;
	}
	public static void main(String[] args) {
		X x = new X("Success");
		I<X> i = new I<X>() {
			public String toString(X x1) {
				return x1.name();
			}
		};
		System.out.println(i.toString(x));
	}
}
interface I<T> {
	String toString(T t);
}
]


Full results sent to /tmp/genie.jdt/comptest/run.1565496180436/10.0.1_20190811_000308.txt

Standard Error

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