We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc2e6fe commit 1670236Copy full SHA for 1670236
src/library/scala/collection/convert/Wrappers.scala
@@ -467,4 +467,5 @@ private[collection] trait Wrappers {
467
}
468
469
470
-object Wrappers extends Wrappers
+@SerialVersionUID(0 - 5857859809262781311L)
471
+object Wrappers extends Wrappers with Serializable
test/files/run/t5974.check
@@ -0,0 +1 @@
1
+ok
test/files/run/t5974.scala
@@ -0,0 +1,10 @@
+object Test extends App {
2
+ import scala.collection.JavaConverters._
3
+
4
+ def ser(a: AnyRef) =
5
+ (new java.io.ObjectOutputStream(new java.io.ByteArrayOutputStream())).writeObject(a)
6
7
+ val l = java.util.Arrays.asList("pigdog").asScala
8
+ ser(l)
9
+ println("ok")
10
+}
0 commit comments