Skip to content

Failed

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

Failing for the past 1 build (Since #44 )
Took 0.84 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 - 12
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.1565715170219/12_20190813_125251.txt

Standard Error

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