Skip to content
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

Stream is not Serializable, which is confusing for users and causes lub-computation to infer a type of 250 lines #7403

Closed
scabug opened this issue Apr 22, 2013 · 5 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Apr 22, 2013

Stream shares the fate of List: Stream.Empty and Stream.Cons are Serializable, but Stream itself is not.

Related to #7402.

A potential issue is that unlike List, Stream is not sealed.

@scabug
Copy link
Author

scabug commented Apr 22, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7403?orig=1
Reporter: @soc
Affected Versions: 2.10.1, 2.11.0-M2
See #7402

@scabug
Copy link
Author

scabug commented Apr 22, 2013

@adriaanm said:
shall we deprecate Stream's un-sealedness?

@scabug
Copy link
Author

scabug commented Apr 22, 2013

@soc said:
That's what I would have proposed. Add "@deprecatedInheritance" and "with Serialization".

I can do it.

@scabug
Copy link
Author

scabug commented Apr 26, 2013

@soc said:
Merged in scala/scala@d6b205c.

@scabug scabug closed this as completed Apr 26, 2013
@scabug
Copy link
Author

scabug commented Mar 26, 2015

@lrytz said:
test in scala/scala#4409

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants