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

filter().findFirst() behaves incorrectly in certain circumstances #53

Closed
optisamit opened this issue Jul 4, 2016 · 3 comments
Closed
Assignees
Labels

Comments

@optisamit
Copy link

optisamit commented Jul 4, 2016

This code
Stream.iterate(0, i -> i+1).filter(i -> i == 0).findFirst()
Will loop forever instead of returning the first element

@aNNiMON aNNiMON added the bug label Jul 4, 2016
@aNNiMON aNNiMON self-assigned this Jul 4, 2016
@aNNiMON aNNiMON closed this as completed in 528d932 Jul 4, 2016
@aNNiMON
Copy link
Owner

aNNiMON commented Jul 4, 2016

@optisamit thanks for pointing that out.

@optisamit
Copy link
Author

@aNNiMON Thank you! In what version will the fix be included?

@aNNiMON
Copy link
Owner

aNNiMON commented Jul 5, 2016

@optisamit I'll publish 1.1.1 version this week.

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

No branches or pull requests

2 participants