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

Type tags (and Exprs as well) should be serializable

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.10.0
    • Fix Version/s: Backlog
    • Component/s: Reflection
    • Labels:

      Description

      Because manifests were. Everything's necessary is in place (TypeCreator/TreeCreator infrastructure).

        Activity

        Hide
        Eugene Burmako added a comment -

        Creators are anonymous classes and, as of such, cannot be serialized using standard Java functionality (more precisely, they might be serialized, but then won't be able to be deserialized, since they will most likely not be present on the remote machine). Creators also might refer to free terms in scope, which further complicates things.

        Therefore I'm deferring this functionality until at least 2.10.1 and submitting a pull request that explicitly declares exprs and type tags as not serializable: https://github.com/scala/scala/pull/1027.

        Show
        Eugene Burmako added a comment - Creators are anonymous classes and, as of such, cannot be serialized using standard Java functionality (more precisely, they might be serialized, but then won't be able to be deserialized, since they will most likely not be present on the remote machine). Creators also might refer to free terms in scope, which further complicates things. Therefore I'm deferring this functionality until at least 2.10.1 and submitting a pull request that explicitly declares exprs and type tags as not serializable: https://github.com/scala/scala/pull/1027 .
        Show
        Eugene Burmako added a comment - Discussion: http://groups.google.com/group/scala-internals/browse_thread/thread/ef63f8b5bd194c7c
        Hide
        Heather Miller added a comment -

        I would be interested in diving into this one as soon as the dust settles and we get the 2.10.0-final out...

        Show
        Heather Miller added a comment - I would be interested in diving into this one as soon as the dust settles and we get the 2.10.0-final out...
        Hide
        Eugene Burmako added a comment -

        I will try to get this into 2.10.1 as requested by Roland. Not marking as a blocker, though, because even if serialization doesn't make it into trunk by 2.10.1, we could still work around this by writing our own serializer for typed channels.

        Show
        Eugene Burmako added a comment - I will try to get this into 2.10.1 as requested by Roland. Not marking as a blocker, though, because even if serialization doesn't make it into trunk by 2.10.1, we could still work around this by writing our own serializer for typed channels.
        Hide
        Eugene Burmako added a comment -

        Would be nice if someone could pick up this issue, as most probably I won't have time for it in the nearest future. I'd be glad to provide assistance with implementation details if necessary.

        Show
        Eugene Burmako added a comment - Would be nice if someone could pick up this issue, as most probably I won't have time for it in the nearest future. I'd be glad to provide assistance with implementation details if necessary.

          People

          • Assignee:
            Eugene Burmako
            Reporter:
            Eugene Burmako
          • Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:

              Development