summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-12-28 04:09:25 +0000
committerPaul Phillips <paulp@improving.org>2010-12-28 04:09:25 +0000
commit5f32d546950f55e31bf380009aff5538d630afaf (patch)
treec7c5769d654b949585c473d5c5ac9d669373ab3d /src/library
parent09d502f2860481687bcb473cdc7fd489439af478 (diff)
downloadscala-5f32d546950f55e31bf380009aff5538d630afaf.tar.gz
scala-5f32d546950f55e31bf380009aff5538d630afaf.tar.bz2
scala-5f32d546950f55e31bf380009aff5538d630afaf.zip
The partest hangs are back in force.
down the long and freezy road once again. With this patch you can send a SIGHUP to partest and it will spew a bunch of internal state. It is also possible I fixed the underlying issue by cleaning up the super fragile dependence on counters never getting the least bit off track. If fixed, it'll still be fun to send signals. If not, this will be coming in handy reeeeeal soon. No review.
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/collection/Iterator.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/Iterator.scala b/src/library/scala/collection/Iterator.scala
index 40f8bc7f81..b741834cf1 100644
--- a/src/library/scala/collection/Iterator.scala
+++ b/src/library/scala/collection/Iterator.scala
@@ -757,7 +757,7 @@ trait Iterator[+A] extends TraversableOnce[A] {
* Typical uses can be achieved via methods `grouped' and `sliding'.
*/
class GroupedIterator[B >: A](self: Iterator[A], size: Int, step: Int) extends Iterator[Seq[B]] {
- require(size >= 1 && step >= 1)
+ require(size >= 1 && step >= 1, "size=%d and step=%d, but both must be positive".format(size, step))
private[this] var buffer: ArrayBuffer[B] = ArrayBuffer() // the buffer
private[this] var filled = false // whether the buffer is "hot"