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

Elision of Array.apply(Predef.wrapRefArray(...)) is not safe

    Details

      Description

      scala> val a = Array("1")
      a: Array[String] = Array(1)
      
      scala> val a2 = Array(a: _*)
      a2: Array[String] = Array(1)
      
      scala> a2(0) = "2"
      
      scala> a
      res3: Array[String] = Array(2)
      

      Introduced in:

      https://github.com/scala/scala/commit/cf820b8

        Issue Links

          Activity

          Show
          Jason Zaugg added a comment - https://github.com/scala/scala/pull/1568
          Hide
          Jason Zaugg added a comment -

          Regression from 2.8.2

          Show
          Jason Zaugg added a comment - Regression from 2.8.2
          Hide
          Jason Zaugg added a comment -

          Reopened pending backport to 2.10.1: https://github.com/scala/scala/pull/1953

          Show
          Jason Zaugg added a comment - Reopened pending backport to 2.10.1: https://github.com/scala/scala/pull/1953

            People

            • Assignee:
              Jason Zaugg
              Reporter:
              Jason Zaugg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development