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

AutoClosingReferenceStream may call its close handle several times #711

Closed
minborg opened this issue Jan 18, 2019 · 0 comments
Closed

AutoClosingReferenceStream may call its close handle several times #711

minborg opened this issue Jan 18, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@minborg
Copy link
Contributor

minborg commented Jan 18, 2019

Streams of type AutoClosingReferenceStream and its siblings may call its close handler several times:

try (Stream s = ....) {
     s.forEach(...);
}

This will call close two times. A) after forEach() B) in the implicit finally block

@minborg minborg added the bug label Jan 18, 2019
@minborg minborg added this to the 3.1.10 Homer milestone Jan 18, 2019
@minborg minborg self-assigned this Jan 18, 2019
@minborg minborg closed this as completed Jan 21, 2019
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

1 participant