Failed

org.eclipse.jdt.core.tests.compiler.regression.NegativeTypeAnnotationTest.test415308f2 - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 10 builds (Since Failed#44 )
Took 0.88 sec.

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/comptest/run.1573297474160/12_20191109_110435.txt

Standard Error

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