Failed
org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest.test013c - 11 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
test013c - 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(Class<T>) of type A has the same erasure as foo(Class<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(Class<T>) of type A has the same erasure as foo(Class<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: test013c - 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(Class<T>) of type A has the same erasure as foo(Class<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(Class<T>) of type A has the same erasure as foo(Class<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.test013c(MethodVerifyTest.java:1060)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.MethodVerifyTest#test013c - 11 A.java [ class A { <T, S> S foo(Class<T> s) { return null; } } interface I { <T> Object foo(Class<T> s); } ] 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 ----------------------------------------