Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test011b - 11 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 35 builds (Since #9 )
Took 0.69 sec.

Error Message

test011b - Eclipse found error(s) but Javac only found warning(s).
----------- Expected ------------
----------\n
1. ERROR in X.java (at line 1)\n
 abstract class X3 extends A implements I {}\n
                ^^\n
Name clash: The method foo(T) of type A has the same erasure as foo(T) of type I but does not override it\n
----------\n

------------ but was ------------
X.java:1: warning: auxiliary class I in A.java should not be accessed from outside its own source file\n
abstract class X3 extends A implements I {}\n
                                       ^\n
1 warning\n

--------- Difference is ----------
 expected:<[----------\n
1. ERROR in X.java (at line 1)\n
 abstract class X3 extends A implements I {}\n
                ^^\n
Name clash: The method foo(T) of type A has the same erasure as foo(T) of type I but does not override it\n
----------]\n
> but was:<[X.java:1: warning: auxiliary class I in A.java should not be accessed from outside its own source file\n
abstract class X3 extends A implements I {}\n
                                       ^\n
1 warning]\n
>

Stacktrace

junit.framework.ComparisonFailure: 
test011b - Eclipse found error(s) but Javac only found warning(s).
----------- Expected ------------
----------\n
1. ERROR in X.java (at line 1)\n
	abstract class X3 extends A implements I {}\n
	               ^^\n
Name clash: The method foo(T) of type A has the same erasure as foo(T) of type I but does not override it\n
----------\n

------------ but was ------------
X.java:1: warning: auxiliary class I in A.java should not be accessed from outside its own source file\n
abstract class X3 extends A implements I {}\n
                                       ^\n
1 warning\n

--------- Difference is ----------
 expected:<[----------\n
1. ERROR in X.java (at line 1)\n
	abstract class X3 extends A implements I {}\n
	               ^^\n
Name clash: The method foo(T) of type A has the same erasure as foo(T) of type I but does not override it\n
----------]\n
> but was:<[X.java:1: warning: auxiliary class I in A.java should not be accessed from outside its own source file\n
abstract class X3 extends A implements I {}\n
                                       ^\n
1 warning]\n
>
	at org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test011b(MethodVerifyTest.java:940)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest#test011b - 11
A.java [
class A { <T> void foo(T t) {} }
interface I { <T, S> void foo(T t); }

]
X.java [
abstract class X3 extends A implements I {}

]


Full results sent to /tmp/genie.jdt/comptest/run.1565427784609/11_20190810_050312.txt

Standard Error

--- javac err: ---
X.java:1: warning: auxiliary class I in A.java should not be accessed from outside its own source file
abstract class X3 extends A implements I {}
                                       ^
1 warning

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