summaryrefslogtreecommitdiff
path: root/test/files/run/t6827.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-7128 Fix regression in copyToArray for empty arraysJason Zaugg2013-02-141-0/+3
|
* Fix Iterator#copyToArray (fixes SI-6827).Erik Osheim2013-01-041-0/+31
As pointed out in #scala, when using a non-zero start it's possible to get an ArrayIndexOutOfBoundsException due to an incorrect bounds check. This patch fixes this, as well as another potential bounds error, and adds test cases. Incorporates some other suggestions by Som-Snytt to ensure that callers will get useful error messages in cases where the start parameter is wrong (negative or out-of-array-bounds). Review by @som-snytt.