You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following test fails (It works in 2.8.1.final):
val traversable = 1 to 30 map {_.toString}
def normalize(m:Map[Char,Traversable[String]]) = m.map{case (k,v) => (k,v.toList)}
val groupedFromView = (traversable view).groupBy(_(0))
val groupedFromStrict = traversable.groupBy(_(0))
assert(normalize(groupedFromView) == normalize(groupedFromStrict))
groupBy throws an exception in 2.9.0 but in 2.9.0.1 just returns the wrong value.
Essentially what is happening is the groups are formed correctly but the values in each group are always the entire collection. I believe the bug is in TraversableViewLike:170. Look at the implementation:
The following test fails (It works in 2.8.1.final):
groupBy throws an exception in 2.9.0 but in 2.9.0.1 just returns the wrong value.
Essentially what is happening is the groups are formed correctly but the values in each group are always the entire collection. I believe the bug is in TraversableViewLike:170. Look at the implementation:
The section newForced(thisSeq) probably should be newForced(xs).
I have tried this in a subclass and the fix worked.
The text was updated successfully, but these errors were encountered: