summaryrefslogtreecommitdiff
path: root/test/files/run/t2296c
diff options
context:
space:
mode:
authorErik Osheim <d_m@plastic-idolatry.com>2012-12-17 23:28:08 -0500
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-01-04 11:48:38 -0800
commit92cf0e354e38d450bfe34d4612f9f869faec2baf (patch)
tree989fc06d6b2c8e372e17e6ebefbba32770ae789c /test/files/run/t2296c
parente112ac94d04be7ee715ebf8724709123b0f3e1f6 (diff)
downloadscala-92cf0e354e38d450bfe34d4612f9f869faec2baf.tar.gz
scala-92cf0e354e38d450bfe34d4612f9f869faec2baf.tar.bz2
scala-92cf0e354e38d450bfe34d4612f9f869faec2baf.zip
Fix Iterator#copyToArray (fixes SI-6827).
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.
Diffstat (limited to 'test/files/run/t2296c')
0 files changed, 0 insertions, 0 deletions