diff options
author | Philipp Haller <hallerp@gmail.com> | 2008-08-01 15:52:25 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2008-08-01 15:52:25 +0000 |
commit | 9dbfdc9ae1d9e2db5159829c35808f826c84bed6 (patch) | |
tree | bf4e7e6fa3106bdbf53ef4a29c3b8c565b5f71a5 /test/files/jvm/t1116.scala | |
parent | 8954759d5001df331452872bacbcc7b932639eed (diff) | |
download | scala-9dbfdc9ae1d9e2db5159829c35808f826c84bed6.tar.gz scala-9dbfdc9ae1d9e2db5159829c35808f826c84bed6.tar.bz2 scala-9dbfdc9ae1d9e2db5159829c35808f826c84bed6.zip |
Moved tests from jvm to jvm5.
Diffstat (limited to 'test/files/jvm/t1116.scala')
-rw-r--r-- | test/files/jvm/t1116.scala | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test/files/jvm/t1116.scala b/test/files/jvm/t1116.scala deleted file mode 100644 index 023e5b3a02..0000000000 --- a/test/files/jvm/t1116.scala +++ /dev/null @@ -1,27 +0,0 @@ -object Serialize { - @throws(classOf[java.io.IOException]) - def write[A](o: A): Array[Byte] = { - val ba = new java.io.ByteArrayOutputStream(512) - val out = new java.io.ObjectOutputStream(ba) - out.writeObject(o) - out.close() - ba.toByteArray() - } - @throws(classOf[java.io.IOException]) - @throws(classOf[ClassNotFoundException]) - def read[A](buffer: Array[Byte]): A = { - val in = - new java.io.ObjectInputStream(new java.io.ByteArrayInputStream(buffer)) - in.readObject().asInstanceOf[A] - } -} - -object Foo { - def obj_foo(x: Int) = { () => x } -} - -object Test { - def main(args: Array[String]) { - Serialize.write(Foo.obj_foo(3)) - } -} |