Skip to content

Failed

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

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

Standard Error

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