diff options
author | Rex Kerr <ichoran@gmail.com> | 2014-02-13 17:47:27 -0800 |
---|---|---|
committer | Rex Kerr <ichoran@gmail.com> | 2014-02-13 17:47:27 -0800 |
commit | d3a302b022adc5eaeb1fcbdffaffd5fd438726e0 (patch) | |
tree | 8f11e757d17d29e13e106bd7426591c8813ed610 /test/files/run/t6632.check | |
parent | c83e01d47d941265fa5415c0f29a884c904fdfa0 (diff) | |
download | scala-d3a302b022adc5eaeb1fcbdffaffd5fd438726e0.tar.gz scala-d3a302b022adc5eaeb1fcbdffaffd5fd438726e0.tar.bz2 scala-d3a302b022adc5eaeb1fcbdffaffd5fd438726e0.zip |
SI-6632 ListBuffer's updated accepts negative positions
Changed the behavior in SeqLike.updated (which would silently accept negatives and throw on empty.tail) to throw IndexOutOfBoundException.
Updated tests to verify the behavior in ListBuffer. Everything else SeqLike will come along for the ride.
Diffstat (limited to 'test/files/run/t6632.check')
-rw-r--r-- | test/files/run/t6632.check | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/run/t6632.check b/test/files/run/t6632.check index 1f084b1dac..26cf061b5f 100644 --- a/test/files/run/t6632.check +++ b/test/files/run/t6632.check @@ -1,3 +1,5 @@ java.lang.IndexOutOfBoundsException: -1 java.lang.IndexOutOfBoundsException: -2 java.lang.IndexOutOfBoundsException: -3 +java.lang.IndexOutOfBoundsException: -1 +java.lang.IndexOutOfBoundsException: 5 |