Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.8 collections regression: unhappiness involving String.view #2876

Closed
scabug opened this issue Jan 8, 2010 · 3 comments
Closed

2.8 collections regression: unhappiness involving String.view #2876

scabug opened this issue Jan 8, 2010 · 3 comments
Assignees

Comments

@scabug
Copy link

scabug commented Jan 8, 2010

works in 2.8.0.Beta1-RC6, broken in RC7:

Welcome to Scala version 2.8.0.Beta1-RC7 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_17).

scala> "x".view.filter(_ => true).take(1)
java.lang.UnsupportedOperationException: IndexedSeqViewF(x).newBuilder
	at scala.collection.TraversableViewLike$$class.newBuilder(TraversableViewLike.scala:42)
	at scala.collection.views.TraversableLike.newBuilder(Transformed.scala:23)
	at scala.collection.IndexedSeqLike$$class.slice(IndexedSeqLike.scala:173)
	at scala.collection.views.IndexedSeqLike.slice(Transformed.scala:33)
	at scala.collection.IndexedSeqLike$$class.take(IndexedSeqLike.scala:195)
	at scala.collection.views.IndexedSeqLike.take(Transformed.scala:33)
	at scala.collection.views.IndexedSeqLike.take(Transformed.scala:33)
	at .<init>(<console>:5)

perhaps #2865 is related

@scabug
Copy link
Author

scabug commented Jan 8, 2010

Imported From: https://issues.scala-lang.org/browse/SI-2876?orig=1
Reporter: @SethTisue

@scabug
Copy link
Author

scabug commented Jan 11, 2010

@lindydonna said:
Paul, this seems to be a problem related to your commit r20311.

@scabug
Copy link
Author

scabug commented Jan 13, 2010

@paulp said:
Fixed via the ol' "revert it" trick in r20490. I threw in a test case to defend against a recurrence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants