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

ArrayStack filter gives null element #6614

Closed
scabug opened this issue Nov 5, 2012 · 3 comments
Closed

ArrayStack filter gives null element #6614

scabug opened this issue Nov 5, 2012 · 3 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Nov 5, 2012

The following program results in an ArrayStack with an ArrayStack with two Objects and a null element when it should end up with an ArrayStack with three Objects.

import scala.collection.mutable.ArrayStack
var x = ArrayStack[Object](new Object, new Object, new Object)
x filter (_.isInstanceOf[Object])
@scabug
Copy link
Author

@scabug scabug commented Nov 5, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6614?orig=1
Reporter: Ronald Schlaifer (sschlaif)
Affected Versions: 2.9.2

@scabug
Copy link
Author

@scabug scabug commented Nov 8, 2012

@soc said:
This seems to be fixed in both 2.10.0-RC1 and 2.11.0-20121010-013641-9bedb07350.

I'll leave it open for those who decide whether there will be a 2.9.3.

@scabug
Copy link
Author

@scabug scabug commented Dec 8, 2012

@retronym said:
Test case in scala/scala#1733. I'm not sure when it was fixed, it was sometime in v2.9.2...v2.10.0-M1.

@scabug scabug closed this Dec 10, 2012
@scabug scabug added the has PR label Apr 7, 2017
@scabug scabug added this to the 2.10.0 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants