Scala Programming Language
  1. Scala Programming Language
  2. SI-7403

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Scala 2.10.1, Scala 2.11.0-M2
    • Fix Version/s: Scala 2.11.0-M3
    • Component/s: None
    • Labels:

      Description

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

      Related to SI-7402.

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

        Issue Links

          Activity

          Hide
          Adriaan Moors added a comment -

          shall we deprecate Stream's un-sealedness?

          Show
          Adriaan Moors added a comment - shall we deprecate Stream's un-sealedness?
          Hide
          Simon Ochsenreither added a comment -

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

          I can do it.

          Show
          Simon Ochsenreither added a comment - That's what I would have proposed. Add "@deprecatedInheritance" and "with Serialization". I can do it.
          Show
          Simon Ochsenreither added a comment - Merged in https://github.com/scala/scala/commit/d6b205cae71e2f1ca6d606cf9efa55344da0aa87 .

            People

            • Assignee:
              Simon Ochsenreither
              Reporter:
              Simon Ochsenreither
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development