Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test015e - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since #44 )
Took 0.73 sec.

Error Message

test015e - Eclipse found error(s) but Javac only found warning(s).
----------- Expected ------------
----------\n
1. ERROR in X.java (at line 1)\n
 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
 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: 
test015e - Eclipse found error(s) but Javac only found warning(s).
----------- Expected ------------
----------\n
1. ERROR in X.java (at line 1)\n
	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
	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[]
	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.test015e(MethodVerifyTest.java:1278)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest#test015e - 12
X.java [
abstract class X extends Y implements I { }
interface I { void foo(A[] a); }
class Y { public void foo(A<String>[] a) {} }
class A<T> {}

]


Full results sent to /tmp/genie.jdt/comptest/run.1565715170219/12_20190813_125251.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

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