Failed
org.eclipse.jdt.core.tests.compiler.regression.NegativeTypeAnnotationTest.test415308f2 - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Failing for the past 1 build
(Since Failed
)
Error Message
test415308f2 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in X.java (at line 13)\n public @Illegal Y.Z[] foo() { return null;}\n ^^^^^^^^\n Type annotations are not allowed on type names used to access static members\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in X.java (at line 13)\n public @Illegal Y.Z[] foo() { return null;}\n ^^^^^^^^\n Type annotations are not allowed on type names used to access static members\n ----------\n ]>
Stacktrace
junit.framework.ComparisonFailure: test415308f2 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in X.java (at line 13)\n public @Illegal Y.Z[] foo() { return null;}\n ^^^^^^^^\n Type annotations are not allowed on type names used to access static members\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in X.java (at line 13)\n public @Illegal Y.Z[] foo() { return null;}\n ^^^^^^^^\n Type annotations are not allowed on type names used to access static members\n ----------\n ]> at org.eclipse.jdt.core.tests.compiler.regression.NegativeTypeAnnotationTest.test415308f2(NegativeTypeAnnotationTest.java:3836)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.NegativeTypeAnnotationTest#test415308f2 - 12 X.java [ import java.lang.annotation.ElementType; import java.lang.annotation.Target; @Target(ElementType.TYPE_USE) @interface Illegal { } class Y { static class Z { Z() {} } } class X { public @Illegal Y.Z[] foo() { return null;} } ] Full results sent to /tmp/genie.jdt/comptest/run.1565715170219/12_20190813_125251.txt
Standard Error
----------------------------------------