Regression

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#113 )
Took 0.58 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.compiler.regression.FlowAnalysisTest.test046(FlowAnalysisTest.java:1422)

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/genie.jdt/comptest/run.1566014584562/1.8.0_162_20190817_000312.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

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