summaryrefslogtreecommitdiff
path: root/test/files/run/t6827.check
Commit message (Collapse)AuthorAgeFilesLines
* Fix Iterator#copyToArray (fixes SI-6827).Erik Osheim2012-12-201-0/+15
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.