summaryrefslogtreecommitdiff
path: root/test/files/run/t5262.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-03-03 15:06:02 -0800
committerPaul Phillips <paulp@improving.org>2012-03-03 15:18:23 -0800
commitfb87f2de763e558c8639905ea8dfb447b5212cf7 (patch)
tree155b8fc90c1021ed67d5fe576eafb4a5a745797b /test/files/run/t5262.scala
parent61d34ed3fd61ab60ddea10445c737a3c9a6aa525 (diff)
downloadscala-fb87f2de763e558c8639905ea8dfb447b5212cf7.tar.gz
scala-fb87f2de763e558c8639905ea8dfb447b5212cf7.tar.bz2
scala-fb87f2de763e558c8639905ea8dfb447b5212cf7.zip
Test case closes SI-4777.
And pending tests for most of the other VerifyErrors which still fail to verify.
Diffstat (limited to 'test/files/run/t5262.scala')
-rw-r--r--test/files/run/t5262.scala26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/files/run/t5262.scala b/test/files/run/t5262.scala
new file mode 100644
index 0000000000..fc4e57aa96
--- /dev/null
+++ b/test/files/run/t5262.scala
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+object Test {
+
+ def serializationDeserialization(obj : Any) {
+ val bos = new java.io.ByteArrayOutputStream()
+ val out = new java.io.ObjectOutputStream(bos)
+ out.writeObject(obj)
+
+ val arr = bos.toByteArray()
+ val in = new java.io.ObjectInputStream(new java.io.ByteArrayInputStream(arr))
+ val o = in.readObject()
+ println(o)
+ }
+
+ def main(args : Array[String]) {
+ serializationDeserialization(List(1,2,3,4))
+ serializationDeserialization(List(1,2,null,4))
+ }
+
+}