Failed
org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test037c - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Failing for the past 31 builds
(Since Failed
)
Error Message
test037c - Eclipse found error(s) but Javac only found warning(s). ----------- Expected ------------ ----------\n 1. ERROR in X.java (at line 1)\n public abstract class X extends Y implements I { }\n ^\n Name clash: The method foo(A<String>) of type Y has the same erasure as foo(A) of type I but does not override it\n ----------\n 2. WARNING in X.java (at line 2)\n interface I { void foo(A a); }\n ^\n A is a raw type. References to generic type A<T> should be parameterized\n ----------\n ------------ but was ------------ X.java:2: warning: [rawtypes] found raw type: A\n interface I { void foo(A a); }\n ^\n missing type arguments for generic class A<T>\n where T is a type-variable:\n T extends Object declared in class A\n 1 warning\n --------- Difference is ---------- expected:<[----------\n 1. ERROR in X.java (at line 1)\n public abstract class X extends Y implements I { }\n ^\n Name clash: The method foo(A<String>) of type Y has the same erasure as foo(A) of type I but does not override it\n ----------\n 2. WARNING in X.java (at line 2)\n interface I { void foo(A a); }\n ^\n A is a raw type. References to generic type A<T> should be parameterized\n ----------]\n > but was:<[X.java:2: warning: [rawtypes] found raw type: A\n interface I { void foo(A a); }\n ^\n missing type arguments for generic class A<T>\n where T is a type-variable:\n T extends Object declared in class A\n 1 warning]\n >
Stacktrace
junit.framework.ComparisonFailure: test037c - Eclipse found error(s) but Javac only found warning(s). ----------- Expected ------------ ----------\n 1. ERROR in X.java (at line 1)\n public abstract class X extends Y implements I { }\n ^\n Name clash: The method foo(A<String>) of type Y has the same erasure as foo(A) of type I but does not override it\n ----------\n 2. WARNING in X.java (at line 2)\n interface I { void foo(A a); }\n ^\n A is a raw type. References to generic type A<T> should be parameterized\n ----------\n ------------ but was ------------ X.java:2: warning: [rawtypes] found raw type: A\n interface I { void foo(A a); }\n ^\n missing type arguments for generic class A<T>\n where T is a type-variable:\n T extends Object declared in class A\n 1 warning\n --------- Difference is ---------- expected:<[----------\n 1. ERROR in X.java (at line 1)\n public abstract class X extends Y implements I { }\n ^\n Name clash: The method foo(A<String>) of type Y has the same erasure as foo(A) of type I but does not override it\n ----------\n 2. WARNING in X.java (at line 2)\n interface I { void foo(A a); }\n ^\n A is a raw type. References to generic type A<T> should be parameterized\n ----------]\n > but was:<[X.java:2: warning: [rawtypes] found raw type: A\n interface I { void foo(A a); }\n ^\n missing type arguments for generic class A<T>\n where T is a type-variable:\n T extends Object declared in class A\n 1 warning]\n > at org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test037c(MethodVerifyTest.java:2616)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest#test037c - 12 X.java [ public abstract class X extends Y implements I { } interface I { void foo(A a); } class Y { void foo(A<String> a) {} } class A<T> {} ] Full results sent to /tmp/comptest/run.1584180334688/12_20200314_100536.txt
Standard Error
--- javac err: --- X.java:2: warning: [rawtypes] found raw type: A interface I { void foo(A a); } ^ missing type arguments for generic class A<T> where T is a type-variable: T extends Object declared in class A 1 warning ----------------------------------------