Failed

org.eclipse.jdt.core.tests.compiler.regression.NegativeTypeAnnotationTest.test420038 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 51 builds (Since #64 )
Took 0.6 sec.

Error Message

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 8)\n
 Class<?> c = int @T [].class; \n
                  ^^\n
Syntax error, type annotations are illegal here\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 8)\n
 Class<?> c = int @T [].class; \n
                  ^^\n
Syntax error, type annotations are illegal here\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. ERROR in X.java (at line 8)\n
	Class<?> c = int @T [].class; \n
	                 ^^\n
Syntax error, type annotations are illegal here\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. ERROR in X.java (at line 8)\n
	Class<?> c = int @T [].class; \n
	                 ^^\n
Syntax error, type annotations are illegal here\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.NegativeTypeAnnotationTest.test420038(NegativeTypeAnnotationTest.java:4167)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NegativeTypeAnnotationTest#test420038 - 1.8
X.java [
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
@Target(ElementType.TYPE_USE)
@interface T {
}
public class X {
	public static void main(String[] args) {
		Class<?> c = int @T [].class; 
	}
}

]


Full results sent to /tmp/genie.jdt/comptest/run.1566619421654/1.8.0_162_20190824_000350.txt

Standard Error

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