Skip to content

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 2 builds (Since #167 )
Took 0.67 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 /home/jenkins/agent/workspace/eclipse.jdt.core-run.javac-1.8/tmp/comptest/run.1584479137560/1.8.0_202_20200317_210541.txt

Standard Error

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