Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.10.1-RC1, Scala 2.10.1
    • Fix Version/s: None
    • Component/s: Collections

      Description

      copying zero bytes did not throw an exception in 2.10.0, so it should not start doing so now (discovered when running the Akka test suite on 2.10.1-RC1)

        Issue Links

          Activity

          Hide
          Roland Kuhn added a comment -

          this issue was introduced by fixing the above ticket

          Show
          Roland Kuhn added a comment - this issue was introduced by fixing the above ticket
          Hide
          Jason Zaugg added a comment -
          scala> "...".toIterator.copyToArray(new Array[Char](0), 0, 0)
          java.lang.IllegalArgumentException: requirement failed: start 0 out of range 0
          	at scala.Predef$.require(Predef.scala:233)
          
          Show
          Jason Zaugg added a comment - scala> "...".toIterator.copyToArray(new Array[Char](0), 0, 0) java.lang.IllegalArgumentException: requirement failed: start 0 out of range 0 at scala.Predef$.require(Predef.scala:233)
          Show
          Jason Zaugg added a comment - https://github.com/scala/scala/pull/2128
          Hide
          Björn Antonsson added a comment - - edited

          This did not throw an exception on 2.10.0. We are still copying 0 bytes.

          scala> "...".toIterator.copyToArray(new Array[Char](1), 1, 0)
          java.lang.IllegalArgumentException: requirement failed: start 1 out of range 1
          
          Show
          Björn Antonsson added a comment - - edited This did not throw an exception on 2.10.0. We are still copying 0 bytes. scala> "...".toIterator.copyToArray(new Array[Char](1), 1, 0) java.lang.IllegalArgumentException: requirement failed: start 1 out of range 1
          Hide
          James Iry added a comment -

          2.10.2 is about to be cut. Kicking down the road and un-assigning to foster work stealing.

          Show
          James Iry added a comment - 2.10.2 is about to be cut. Kicking down the road and un-assigning to foster work stealing.
          Hide
          James Iry added a comment -

          2.10.2 is about to be cut. Kicking down the road and un-assigning to foster work stealing.

          Show
          James Iry added a comment - 2.10.2 is about to be cut. Kicking down the road and un-assigning to foster work stealing.

            People

            • Assignee:
              Unassigned
              Reporter:
              Roland Kuhn
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Development