Skip to content

Failed

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 #9 )
Took 0.75 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.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:2064)
	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.ProblemConstructorTest.test408038c(ProblemConstructorTest.java:392)

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/comptest/run.1514610271420/1.8.0_131_20171230_000432.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

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