Regression

org.eclipse.jdt.core.tests.compiler.regression.ProblemConstructorTest.test408038c - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 1 build (Since Failed#115 )
Took 0.62 sec.

Error Message

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

------------ but was ------------
X.java:6: warning: [serial] serializable class Y has no definition of serialVersionUID\n
 private static class Y implements Externalizable {\n
                ^\n
1 warning\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:6: warning: [serial] serializable class Y has no definition of serialVersionUID\n
 private static class Y implements Externalizable {\n
                ^\n
1 warning\n
]>

Stacktrace

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

------------ but was ------------
X.java:6: warning: [serial] serializable class Y has no definition of serialVersionUID\n
	private static class Y implements Externalizable {\n
	               ^\n
1 warning\n

--------- Difference is ----------
 expected:<[]> but was:<[X.java:6: warning: [serial] serializable class Y has no definition of serialVersionUID\n
	private static class Y implements Externalizable {\n
	               ^\n
1 warning\n
]>
	at org.eclipse.jdt.core.tests.compiler.regression.ProblemConstructorTest.test408038c(ProblemConstructorTest.java:408)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.ProblemConstructorTest#test408038c - 1.8
X.java [
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
public class X {
	private static class Y implements Externalizable {
		static final int i = 10;
		public Y() {}
		public Y(int x) {System.out.println(x);}

		@Override
		public void writeExternal(ObjectOutput out) throws IOException {
		}

		@Override 
		public void readExternal(ObjectInput in) throws IOException,
		ClassNotFoundException {
		}
	}
	public void zoo() {
		System.out.println(Y.i);
		Y y = new Y(5);
		System.out.println(y);
	}
}
]


Full results sent to /tmp/genie.jdt/comptest/run.1566687977074/1.8.0_162_20190824_190625.txt

Standard Error

--- javac err: ---
X.java:6: warning: [serial] serializable class Y has no definition of serialVersionUID
	private static class Y implements Externalizable {
	               ^
1 warning

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