From 8cc66b0a8fb6c8c46c306a672a66cf5af431f733 Mon Sep 17 00:00:00 2001 From: Rex Kerr Date: Sun, 22 Feb 2015 15:54:29 -0800 Subject: SI-9172 FlatMapped views throw exception on filter Errant `self.length` changed to `length`. No tests; found and tested by collections-laws. --- src/library/scala/collection/SeqViewLike.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/scala/collection/SeqViewLike.scala b/src/library/scala/collection/SeqViewLike.scala index 59e0e73e89..3473c8aff1 100644 --- a/src/library/scala/collection/SeqViewLike.scala +++ b/src/library/scala/collection/SeqViewLike.scala @@ -83,7 +83,7 @@ trait SeqViewLike[+A, } def length = index(self.length) def apply(idx: Int) = { - if (idx < 0 || idx >= self.length) throw new IndexOutOfBoundsException(idx.toString) + if (idx < 0 || idx >= length) throw new IndexOutOfBoundsException(idx.toString) val row = findRow(idx, 0, self.length - 1) mapping(self(row)).seq.toSeq(idx - index(row)) } -- cgit v1.2.3