summaryrefslogtreecommitdiff
path: root/test/files/jvm/serialization.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-12-01 18:28:55 +0000
committerPaul Phillips <paulp@improving.org>2009-12-01 18:28:55 +0000
commita3bf3f136caaefa98268607a3529b7554df5fc80 (patch)
tree220322df1130f864af06661baca1b7f4434ee32d /test/files/jvm/serialization.check
parentc2359ccec521ed24641fb010774e7b39b4ae62b2 (diff)
downloadscala-a3bf3f136caaefa98268607a3529b7554df5fc80.tar.gz
scala-a3bf3f136caaefa98268607a3529b7554df5fc80.tar.bz2
scala-a3bf3f136caaefa98268607a3529b7554df5fc80.zip
[This patch submitted by ismael juma - commit m...
[This patch submitted by ismael juma - commit message his words, but condensed.] Fix ticket #1600: Serialization and deserialization of hash-based collections should not re-use hashCode. The collection is rebuilt on deserialization - note that this is not compatible with the previous serialization format. All @SerialVersionUIDs have been reset to 1. WeakHashMap is not Serializable and should not be so. TreeHashMap has not been reintegrated yet. OpenHashMap has not been updated. (I think this collection is flawed and should be removed or reimplemented.)
Diffstat (limited to 'test/files/jvm/serialization.check')
-rw-r--r--test/files/jvm/serialization.check6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/jvm/serialization.check b/test/files/jvm/serialization.check
index f1b5b10ec6..2b0ad3888b 100644
--- a/test/files/jvm/serialization.check
+++ b/test/files/jvm/serialization.check
@@ -78,11 +78,11 @@ y = BitSet(2, 3)
x equals y: true, y equals x: true
x = Map(2 -> B, 1 -> A, 3 -> C)
-y = Map(2 -> B, 1 -> A, 3 -> C)
+y = Map(1 -> A, 2 -> B, 3 -> C)
x equals y: true, y equals x: true
x = Set(1, 2)
-y = Set(1, 2)
+y = Set(2, 1)
x equals y: true, y equals x: true
x = List((buffers,20), (layers,2), (title,3))
@@ -158,7 +158,7 @@ y = BitSet(0, 8, 9)
x equals y: true, y equals x: true
x = Map(A -> 1, C -> 3, B -> 2)
-y = Map(A -> 1, C -> 3, B -> 2)
+y = Map(B -> 2, C -> 3, A -> 1)
x equals y: true, y equals x: true
x = Set(layers, buffers, title)