summaryrefslogtreecommitdiff
path: root/test/files/run/si5374.check
diff options
context:
space:
mode:
authoraleksandar <aleksandar@lampmac14.epfl.ch>2012-01-25 20:17:52 +0100
committeraleksandar <aleksandar@lampmac14.epfl.ch>2012-01-25 20:17:52 +0100
commite234978dfddf5f4871312eb7744ac3b133ad00da (patch)
treeb7412ab8565ae20db1398c1b04297bc1e790fed9 /test/files/run/si5374.check
parenta6fcd70b6047ab56cb3415f378ffc8d72a524a8d (diff)
downloadscala-e234978dfddf5f4871312eb7744ac3b133ad00da.tar.gz
scala-e234978dfddf5f4871312eb7744ac3b133ad00da.tar.bz2
scala-e234978dfddf5f4871312eb7744ac3b133ad00da.zip
Refine fix for SI-5374 - make list deserialization backward-compatible.
This is done by structurally serializing list nodes, but prepending a special `ListSerializationStart` symbol ahead of the list. If this symbol is not in the object input stream, the deserialization reverts to the old mode. Note there is not much to be done for list buffers - their serialization was broken before, so legacy serialized list buffers are no longer deserializable. However, their serialVersionUID was changed to reflect this, so deserializing a legacy list buffer should fail fast.
Diffstat (limited to 'test/files/run/si5374.check')
-rw-r--r--test/files/run/si5374.check5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/files/run/si5374.check b/test/files/run/si5374.check
index cdf0bc7e5b..6be88d77ec 100644
--- a/test/files/run/si5374.check
+++ b/test/files/run/si5374.check
@@ -1,3 +1,6 @@
ListBuffer(1, 2, 3, 1)
ListBuffer(1, 2, 3, 1)
-ListBuffer() \ No newline at end of file
+ListBuffer()
+List(1, 2, 3, 4, 5)
+List(1, 2, 3)
+ok \ No newline at end of file