Failed

org.eclipse.jdt.core.tests.compiler.regression.NegativeTypeAnnotationTest.test415308b2 - 10 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 11 builds (Since Failed#81 )
Took 0.78 sec.

Error Message

test415308b2 - Eclipse found error(s) but Javac did not find any.
----------- Expected ------------

------------ but was ------------
----------\n
1. ERROR in X.java (at line 16)\n
 @Illegal Y.YY.Z[] z = 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 16)\n
 @Illegal Y.YY.Z[] z = null;\n
 ^^^^^^^^\n
Type annotations are not allowed on type names used to access static members\n
----------\n
]>

Stacktrace

junit.framework.ComparisonFailure: 
test415308b2 - Eclipse found error(s) but Javac did not find any.
----------- Expected ------------

------------ but was ------------
----------\n
1. ERROR in X.java (at line 16)\n
	@Illegal Y.YY.Z[] z = 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 16)\n
	@Illegal Y.YY.Z[] z = 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.test415308b2(NegativeTypeAnnotationTest.java:3627)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NegativeTypeAnnotationTest#test415308b2 - 10
X.java [
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

@Target(ElementType.TYPE_USE)
@interface Illegal {
}
class Y {
	static class YY {
		class Z {
			Z() {}
		}
	}
}
class X {
	Y.YY.Z[] foo() {
		@Illegal Y.YY.Z[] z = null;
		return z;
	}
	Y.YY.Z[] foo2() {
		Y.@Illegal YY.Z[] z = null;
		return z;
	}
	Y.YY.Z[] foo3() {
		Y.YY.@Illegal Z[] z = null;
		return z;
	}
}

]


Full results sent to /tmp/genie.jdt/comptest/run.1563077023750/10.0.1_20190714_000352.txt

Standard Error

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