New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copyToArray(xs, 0, 0) should not fail #7128
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7128?orig=1 |
@rkuhn said: |
@retronym said: 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) |
@retronym said: |
Björn Antonsson (bjorn.antonsson) said (edited on Mar 14, 2013 1:34:36 PM UTC): scala> "...".toIterator.copyToArray(new Array[Char](1), 1, 0)
java.lang.IllegalArgumentException: requirement failed: start 1 out of range 1 |
@JamesIry said: |
1 similar comment
@JamesIry said: |
@Ichoran said: |
@Ichoran said: |
@retronym said: |
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)
The text was updated successfully, but these errors were encountered: