Failed

org.eclipse.jdt.core.tests.compiler.regression.FlowAnalysisTest.testCloseable1 - 10 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 5 builds (Since Failed#105 )
Took 0.59 sec.

Error Message

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

------------ but was ------------
----------\n
1. WARNING in X.java (at line 7)\n
 FileReader fileReader = new FileReader(file); // not closed\n
            ^^^^^^^^^^\n
Resource leak: 'fileReader' is never closed\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. WARNING in X.java (at line 7)\n
 FileReader fileReader = new FileReader(file); // not closed\n
            ^^^^^^^^^^\n
Resource leak: 'fileReader' is never closed\n
----------\n
]>

Stacktrace

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

------------ but was ------------
----------\n
1. WARNING in X.java (at line 7)\n
	FileReader fileReader = new FileReader(file); // not closed\n
	           ^^^^^^^^^^\n
Resource leak: 'fileReader' is never closed\n
----------\n

--------- Difference is ----------
 expected:<[]> but was:<[----------\n
1. WARNING in X.java (at line 7)\n
	FileReader fileReader = new FileReader(file); // not closed\n
	           ^^^^^^^^^^\n
Resource leak: 'fileReader' is never closed\n
----------\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.FlowAnalysisTest.testCloseable1(FlowAnalysisTest.java:2383)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.FlowAnalysisTest#testCloseable1 - 10
X.java [
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
public class X {
    void foo() throws IOException {
        File file = new File("somefile");
        FileReader fileReader = new FileReader(file); // not closed
        char[] in = new char[50];
        fileReader.read(in);
    }
}

]


Full results sent to /tmp/comptest/run.1570939403540/10.0.2_20191013_040324.txt

Standard Error

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