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

ClassCastException when migrating remote actors

    Details

      Description

      Type casting in Actor.scala:64 fails with a ClassCastException when migrating remote actors. This prevents migration of remote actors at the early stage of actor migration.
      The line that fails in Actor.scala:64:

      def self: Actor = self(Scheduler).asInstanceOf[Actor]
      

      The fix is very simple and has local effects. The invocations to `Actor.self` should be replaced with `self(Scheduler)` in the code of remote actors. The fix is already prepared and can be seen in:
      http://github.com/vjovanov/scala/commit/626bd15b1335c03a85d7c3bd40cc324552108d8a

        Activity

        Hide
        Adriaan Moors added a comment -

        to have this included, an argument needs to be made that

        • this is a regression
        • there is no workaround

        the only reason we're willing to risk regressing due to a fix for a regression is if the latter cannot be worked around
        otherwise, the risk of delaying the 2.10.0 release and eating into our 2.10.1 budget for fixing issues like this is too high

        Show
        Adriaan Moors added a comment - to have this included, an argument needs to be made that this is a regression there is no workaround the only reason we're willing to risk regressing due to a fix for a regression is if the latter cannot be worked around otherwise, the risk of delaying the 2.10.0 release and eating into our 2.10.1 budget for fixing issues like this is too high

          People

          • Assignee:
            Vojin Jovanovic
            Reporter:
            Vojin Jovanovic
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development