Failed

org.eclipse.jdt.core.tests.compiler.regression.ResourceLeakTests.test066b - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

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

Error Message

test066b - Eclipse found error(s) but Javac only found warning(s).
----------- Expected ------------
----------\n
1. ERROR in Test066.java (at line 10)\n
 throw new IOException();\n
 ^^^^^^^^^^^^^^^^^^^^^^^^\n
Potential resource leak: 'lineReader' may not be closed at this location\n
----------\n

------------ but was ------------
Test066.java:2: warning: [serial] serializable class MyException has no definition of serialVersionUID\n
class MyException extends Exception{}\n
^\n
1 warning\n

--------- Difference is ----------
 expected:<[----------\n
1. ERROR in Test066.java (at line 10)\n
 throw new IOException();\n
 ^^^^^^^^^^^^^^^^^^^^^^^^\n
Potential resource leak: 'lineReader' may not be closed at this location\n
----------]\n
> but was:<[Test066.java:2: warning: [serial] serializable class MyException has no definition of serialVersionUID\n
class MyException extends Exception{}\n
^\n
1 warning]\n
>

Stacktrace

junit.framework.ComparisonFailure: test066b - Eclipse found error(s) but Javac only found warning(s).
----------- Expected ------------
----------\n
1. ERROR in Test066.java (at line 10)\n
	throw new IOException();\n
	^^^^^^^^^^^^^^^^^^^^^^^^\n
Potential resource leak: 'lineReader' may not be closed at this location\n
----------\n

------------ but was ------------
Test066.java:2: warning: [serial] serializable class MyException has no definition of serialVersionUID\n
class MyException extends Exception{}\n
^\n
1 warning\n

--------- Difference is ----------
 expected:<[----------\n
1. ERROR in Test066.java (at line 10)\n
	throw new IOException();\n
	^^^^^^^^^^^^^^^^^^^^^^^^\n
Potential resource leak: 'lineReader' may not be closed at this location\n
----------]\n
> but was:<[Test066.java:2: warning: [serial] serializable class MyException has no definition of serialVersionUID\n
class MyException extends Exception{}\n
^\n
1 warning]\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:2048)
	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.ResourceLeakTests.test066b(ResourceLeakTests.java:3326)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.ResourceLeakTests#test066b - 1.8
Test066.java [
import java.io.*;
class MyException extends Exception{}
public class Test066 {
    void countFileLines(String fileName) throws IOException {
		FileReader       fileRead   = new FileReader(fileName);
		BufferedReader   bufRead    = new BufferedReader(fileRead);
		LineNumberReader lineReader = new LineNumberReader(bufRead);
		while (lineReader.readLine() != null) {
			if (lineReader.markSupported())
               throw new IOException();
			lineReader.close();
		}
		lineReader.close();
	}
}

]


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

Standard Error

--- javac err: ---
Test066.java:2: warning: [serial] serializable class MyException has no definition of serialVersionUID
class MyException extends Exception{}
^
1 warning

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