Failed
org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test011a - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
test011a - Eclipse found error(s) but Javac only found warning(s). ----------- Expected ------------ ----------\n 1. ERROR in X.java (at line 1)\n abstract class X2 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 X2 extends A implements I {}\n ^\n 1 warning\n --------- Difference is ---------- expected:<[----------\n 1. ERROR in X.java (at line 1)\n abstract class X2 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 X2 extends A implements I {}\n ^\n 1 warning]\n >
Stacktrace
junit.framework.ComparisonFailure: test011a - Eclipse found error(s) but Javac only found warning(s). ----------- Expected ------------ ----------\n 1. ERROR in X.java (at line 1)\n abstract class X2 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 X2 extends A implements I {}\n ^\n 1 warning\n --------- Difference is ---------- expected:<[----------\n 1. ERROR in X.java (at line 1)\n abstract class X2 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 X2 extends A implements I {}\n ^\n 1 warning]\n > at org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test011a(MethodVerifyTest.java:922)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest#test011a - 12 A.java [ class A { <T, S> void foo(T t) {} } interface I { <T> void foo(T t); } ] X.java [ abstract class X2 extends A implements I {} ] Full results sent to /tmp/genie.jdt/comptest/run.1565715170219/12_20190813_125251.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 X2 extends A implements I {} ^ 1 warning ----------------------------------------