Failed

org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTest.testBug542707_001 - 12 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 10 builds (Since Failed#44 )
Took 0.79 sec.

Error Message

testBug542707_001: unused excuse org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest$JavacTestOptions$Excuse@380d8b0e for compiler org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest$JavacCompiler@3cf1b5fb

Stacktrace

junit.framework.AssertionFailedError: testBug542707_001: unused excuse org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest$JavacTestOptions$Excuse@380d8b0e for compiler org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest$JavacCompiler@3cf1b5fb
	at org.eclipse.jdt.core.tests.compiler.regression.NullAnnotationTest.testBug542707_001(NullAnnotationTest.java:10373)

Standard Output


Full results sent to /tmp/comptest/run.1573297474160/12_20191109_110435.txt

Standard Error

--- javac err: ---
X.java:10: error: switch expressions are a preview feature and are disabled by default.
		x  = switch (i) { 
		     ^
  (use --enable-preview to enable switch expressions)
X.java:11: error: switch rules are a preview feature and are disabled by default.
		case 1  ->   {
		        ^
  (use --enable-preview to enable switch rules)
2 errors