Failed

org.eclipse.jdt.core.tests.compiler.regression.FlowAnalysisTest.test046 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed#9 )
Took 0.7 sec.

Error Message

test046 - Javac found error(s) but Eclipse only found warning(s).
----------- Expected ------------
----------\n
1. WARNING in X.java (at line 3)\n
 for (final int i; 0 < (i = 1); i = i + 1) {\n
                                ^^^^^^^^^\n
Dead code\n
----------\n

------------ but was ------------
X.java:3: error: variable i might be assigned in loop\n
    for (final int i; 0 < (i = 1); i = i + 1) {\n
                           ^\n
1 error\n

--------- Difference is ----------
 expected:<[----------\n
1. WARNING in X.java (at line 3)\n
 for (final int i; 0 < (i = 1); i = i + 1) {\n
                                ^^^^^^^^^\n
Dead code\n
----------]\n
> but was:<[X.java:3: error: variable i might be assigned in loop\n
    for (final int i; 0 < (i = 1); i = i + 1) {\n
                           ^\n
1 error]\n
>

Stacktrace

junit.framework.ComparisonFailure: test046 - Javac found error(s) but Eclipse only found warning(s).
----------- Expected ------------
----------\n
1. WARNING in X.java (at line 3)\n
	for (final int i; 0 < (i = 1); i = i + 1) {\n
	                               ^^^^^^^^^\n
Dead code\n
----------\n

------------ but was ------------
X.java:3: error: variable i might be assigned in loop\n
    for (final int i; 0 < (i = 1); i = i + 1) {\n
                           ^\n
1 error\n

--------- Difference is ----------
 expected:<[----------\n
1. WARNING in X.java (at line 3)\n
	for (final int i; 0 < (i = 1); i = i + 1) {\n
	                               ^^^^^^^^^\n
Dead code\n
----------]\n
> but was:<[X.java:3: error: variable i might be assigned in loop\n
    for (final int i; 0 < (i = 1); i = i + 1) {\n
                           ^\n
1 error]\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:2056)
	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.runConformTest(AbstractRegressionTest.java:2958)
	at org.eclipse.jdt.core.tests.compiler.regression.FlowAnalysisTest.test046(FlowAnalysisTest.java:1414)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.FlowAnalysisTest#test046 - 1.8
X.java [
public abstract class X {
  public static void main(String args[]) {
    for (final int i; 0 < (i = 1); i = i + 1) {
      System.out.println(i);
      break;
    }
  }
}

]


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

Standard Error

--- javac err: ---
X.java:3: error: variable i might be assigned in loop
    for (final int i; 0 < (i = 1); i = i + 1) {
                           ^
1 error

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