Skip to content

Failed

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

Failing for the past 22 builds (Since #111 )
Took 1 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/comptest/run.1584245034298/10.0.2_20200315_040443.txt

Standard Error

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