Failed
org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_8.testBug488663 - 10 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
testBug488663 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in C.java (at line 3)\n Comparator<String> comparator = new Comparator<String>() { //\n ^^^^^^^^^^\n Redundant specification of type arguments <String>\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in C.java (at line 3)\n Comparator<String> comparator = new Comparator<String>() { //\n ^^^^^^^^^^\n Redundant specification of type arguments <String>\n ----------\n ]>
Stacktrace
junit.framework.ComparisonFailure: testBug488663 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in C.java (at line 3)\n Comparator<String> comparator = new Comparator<String>() { //\n ^^^^^^^^^^\n Redundant specification of type arguments <String>\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in C.java (at line 3)\n Comparator<String> comparator = new Comparator<String>() { //\n ^^^^^^^^^^\n Redundant specification of type arguments <String>\n ----------\n ]> at org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_8.testBug488663(GenericsRegressionTest_1_8.java:7328)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.GenericsRegressionTest_1_8#testBug488663 - 10 C.java [ import java.util.Comparator; public class C { Comparator<String> comparator = new Comparator<String>() { // @Override public int compare(String o1, String o2) { return 0; } }; } ] Full results sent to /tmp/comptest/run.1584245034298/10.0.2_20200315_040443.txt
Standard Error
----------------------------------------