Failed
org.eclipse.jdt.core.tests.compiler.regression.SerialVersionUIDTests.test013 - 10 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)
Error Message
test013 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in X.java (at line 2)\n private static final long serialPersistentFields = 1L;\n ^^^^^^^^^^^^^^^^^^^^^^\n The value of the field X<T>.serialPersistentFields is not used\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in X.java (at line 2)\n private static final long serialPersistentFields = 1L;\n ^^^^^^^^^^^^^^^^^^^^^^\n The value of the field X<T>.serialPersistentFields is not used\n ----------\n ]>
Stacktrace
junit.framework.ComparisonFailure: test013 - Eclipse found error(s) but Javac did not find any. ----------- Expected ------------ ------------ but was ------------ ----------\n 1. ERROR in X.java (at line 2)\n private static final long serialPersistentFields = 1L;\n ^^^^^^^^^^^^^^^^^^^^^^\n The value of the field X<T>.serialPersistentFields is not used\n ----------\n --------- Difference is ---------- expected:<[]> but was:<[----------\n 1. ERROR in X.java (at line 2)\n private static final long serialPersistentFields = 1L;\n ^^^^^^^^^^^^^^^^^^^^^^\n The value of the field X<T>.serialPersistentFields is not used\n ----------\n ]> at org.eclipse.jdt.core.tests.compiler.regression.SerialVersionUIDTests.test013(SerialVersionUIDTests.java:266)
Standard Output
org.eclipse.jdt.core.tests.compiler.regression.SerialVersionUIDTests#test013 - 10 X.java [ public class X<T> { private static final long serialPersistentFields = 1L; } ] Full results sent to /tmp/comptest/run.1584245034298/10.0.2_20200315_040443.txt
Standard Error
----------------------------------------