-
Notifications
You must be signed in to change notification settings - Fork 21
return of filterKeys is not serializable #6654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6654?orig=1
|
@rklaehn said: Fix #4776 by either returning a MapView or returning an entirely new Map, and the issue will solve itself. |
@Blaisorblade said: |
@adriaanm said: |
Eran Medan (eranation) said (edited on Mar 7, 2015 10:11:07 AM UTC): |
@dragos said: |
Feel free to reassign but these issues belong together. |
Return of filterKeys is not serializable. I'm not sure this is intended behaviour or a bug, but it's possible to confuse users. Attached file throws following exception:
java.io.NotSerializableException: scala.collection.immutable.MapLike$$anon$1
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
at Test$delayedInit$body.apply(Test.scala:13)
The text was updated successfully, but these errors were encountered: