Details

      Description

      Currently it says something like this:

      [info] - main *** FAILED ***
      [info]   scala.ScalaReflectionException: cannot set an immutable field x
      [info]   at scala.reflect.runtime.JavaMirrors$JavaMirror.scala$reflect$runtime$JavaMirrors$JavaMirror$$ErrorSetImmutableField(JavaMirrors.scala:136)
      [info]   at scala.reflect.runtime.JavaMirrors$JavaMirror$JavaFieldMirror.set(JavaMirrors.scala:285)
      [info]   at scala.pickling.InterpretedUnpicklerRuntime$$anon$2$$anonfun$unpickle$1.apply(Runtime.scala:135)
      [info]   at scala.pickling.InterpretedUnpicklerRuntime$$anon$2$$anonfun$unpickle$1.apply(Runtime.scala:132)
      [info]   at scala.collection.immutable.List.foreach(List.scala:318)
      [info]   at scala.pickling.InterpretedUnpicklerRuntime$$anon$2.unpickle(Runtime.scala:132)
      [info]   at scala.pickling.singleton.hierarchy.SingletonHierarchyTest$$anonfun$1.test$1(singleton-hierarchy.scala:17)
      [info]   at scala.pickling.singleton.hierarchy.SingletonHierarchyTest$$anonfun$1.apply$mcV$sp(singleton-hierarchy.scala:19)
      [info]   at scala.pickling.singleton.hierarchy.SingletonHierarchyTest$$anonfun$1.apply(singleton-hierarchy.scala:12)
      [info]   at scala.pickling.singleton.hierarchy.SingletonHierarchyTest$$anonfun$1.apply(singleton-hierarchy.scala:12)
      

      At first setting up that sentinel seemed like a good idea, but on a second thought this only brings annoyance. After all, that's reflection, a tool designed to circumvent all rules.

        Activity

        Show
        Eugene Burmako added a comment - https://github.com/scala/scala/pull/2504

          People

          • Assignee:
            Eugene Burmako
            Reporter:
            Eugene Burmako
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development