Failed

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

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

Error Message

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

------------ but was ------------
----------\n
1. WARNING in Bug.java (at line 6)\n
 else System.out.println("");\n
      ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
2. WARNING in Bug.java (at line 7)\n
 System.out.println("");\n
 ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
3. WARNING in Bug.java (at line 11)\n
 System.out.println("");\n
 ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
4. WARNING in Bug.java (at line 15)\n
 else System.out.println("");\n
      ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
5. WARNING in Bug.java (at line 16)\n
 System.out.println("");\n
 ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
6. WARNING in Bug.java (at line 19)\n
 if (FALSE) System.out.println("");\n
            ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
7. WARNING in Bug.java (at line 21)\n
 System.out.println("");\n
 ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
8. WARNING in Bug.java (at line 24)\n
 if (FALSE) return;\n
            ^^^^^^^\n
Dead code\n
----------\n
9. WARNING in Bug.java (at line 28)\n
 if (false) return;\n
            ^^^^^^^\n
Dead code\n
----------\n
10. WARNING in Bug.java (at line 31)\n
 System.out.println("");\n
 ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. WARNING in Bug.java (at line 6)\n
 else System.out.println("");\n
      ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
2. WARNING in Bug.java (at line 7)\n
 System.out.println("");\n
 ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
3. WARNING in Bug.java (at line 11)\n
 System.out.println("");\n
 ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
4. WARNING in Bug.java (at line 15)\n
 else System.out.println("");\n
      ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
5. WARNING in Bug.java (at line 16)\n
 System.out.println("");\n
 ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
6. WARNING in Bug.java (at line 19)\n
 if (FALSE) System.out.println("");\n
            ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
7. WARNING in Bug.java (at line 21)\n
 System.out.println("");\n
 ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
8. WARNING in Bug.java (at line 24)\n
 if (FALSE) return;\n
            ^^^^^^^\n
Dead code\n
----------\n
9. WARNING in Bug.java (at line 28)\n
 if (false) return;\n
            ^^^^^^^\n
Dead code\n
----------\n
10. WARNING in Bug.java (at line 31)\n
 System.out.println("");\n
 ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. WARNING in Bug.java (at line 6)\n
	else System.out.println("");\n
	     ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
2. WARNING in Bug.java (at line 7)\n
	System.out.println("");\n
	^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
3. WARNING in Bug.java (at line 11)\n
	System.out.println("");\n
	^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
4. WARNING in Bug.java (at line 15)\n
	else System.out.println("");\n
	     ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
5. WARNING in Bug.java (at line 16)\n
	System.out.println("");\n
	^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
6. WARNING in Bug.java (at line 19)\n
	if (FALSE) System.out.println("");\n
	           ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
7. WARNING in Bug.java (at line 21)\n
	System.out.println("");\n
	^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
8. WARNING in Bug.java (at line 24)\n
	if (FALSE) return;\n
	           ^^^^^^^\n
Dead code\n
----------\n
9. WARNING in Bug.java (at line 28)\n
	if (false) return;\n
	           ^^^^^^^\n
Dead code\n
----------\n
10. WARNING in Bug.java (at line 31)\n
	System.out.println("");\n
	^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. WARNING in Bug.java (at line 6)\n
	else System.out.println("");\n
	     ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
2. WARNING in Bug.java (at line 7)\n
	System.out.println("");\n
	^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
3. WARNING in Bug.java (at line 11)\n
	System.out.println("");\n
	^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
4. WARNING in Bug.java (at line 15)\n
	else System.out.println("");\n
	     ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
5. WARNING in Bug.java (at line 16)\n
	System.out.println("");\n
	^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
6. WARNING in Bug.java (at line 19)\n
	if (FALSE) System.out.println("");\n
	           ^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
7. WARNING in Bug.java (at line 21)\n
	System.out.println("");\n
	^^^^^^^^^^^^^^^^^^^^^^\n
Dead code\n
----------\n
8. WARNING in Bug.java (at line 24)\n
	if (FALSE) return;\n
	           ^^^^^^^\n
Dead code\n
----------\n
9. WARNING in Bug.java (at line 28)\n
	if (false) return;\n
	           ^^^^^^^\n
Dead code\n
----------\n
10. WARNING in Bug.java (at line 31)\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.testBug256796a(NullReferenceTest.java:15924)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NullReferenceTest#testBug256796a - 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("");
	}
   void foo2() {
		if (TRUE) return;
		System.out.println("");
	}
	void foo3() throws Exception {
		if (TRUE) throw new Exception();
		else System.out.println("");
		System.out.println("");
	}
	void foo4() throws Exception {
		if (FALSE) System.out.println("");
		else return;
		System.out.println("");
	}
	void foo5() throws Exception {
		if (FALSE) return;
		System.out.println("");
	}
	void foo6() throws Exception {
		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

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