Failed

org.eclipse.jdt.core.tests.compiler.regression.NullReferenceTest.testBug256796 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 4 builds (Since #6 )
Took 0.75 sec.

Error Message

testBug256796 - Eclipse found warning(s) but Javac did not find any.
----------- Expected ------------

------------ but was ------------
----------\n
1. WARNING in Bug.java (at line 18)\n
 if (false) return;\n
            ^^^^^^^\n
Dead code\n
----------\n
2. WARNING in Bug.java (at line 21)\n
 System.out.println("");\n
 ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. WARNING in Bug.java (at line 18)\n
 if (false) return;\n
            ^^^^^^^\n
Dead code\n
----------\n
2. WARNING in Bug.java (at line 21)\n
 System.out.println("");\n
 ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. WARNING in Bug.java (at line 18)\n
	if (false) return;\n
	           ^^^^^^^\n
Dead code\n
----------\n
2. WARNING in Bug.java (at line 21)\n
	System.out.println("");\n
	^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. WARNING in Bug.java (at line 18)\n
	if (false) return;\n
	           ^^^^^^^\n
Dead code\n
----------\n
2. WARNING in Bug.java (at line 21)\n
	System.out.println("");\n
	^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
]>
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:260)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:236)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runJavac(AbstractRegressionTest.java:2060)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2814)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2539)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runNegativeTest(AbstractRegressionTest.java:2220)
	at org.eclipse.jdt.core.tests.compiler.regression.NullReferenceTest.testBug256796(NullReferenceTest.java:15876)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NullReferenceTest#testBug256796 - 1.8
Bug.java [
public class Bug {
	private static final boolean TRUE = true;
   private static final boolean FALSE = false;
	void foo() throws Exception {
		if (TRUE) return;
		else System.out.println("");
		System.out.println("");
		if (TRUE) throw new Exception();
		else System.out.println("");
		System.out.println("");
		if (TRUE) return;
		System.out.println("");
		if (FALSE) System.out.println("");
		else return;
		System.out.println("");
		if (FALSE) return;
		System.out.println("");
		if (false) return;
		System.out.println("");
		if (true) return;
		System.out.println("");
	}
}

]


Full results sent to /tmp/comptest/run.1514610271420/1.8.0_131_20171230_000432.txt

Standard Error

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