Failed
org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_9.testBug488663_013 - 11 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
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 - 11 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.1565427784609/11_20190810_050312.txt
Standard Error
----------------------------------------