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

Fix for DelegateReader swallowing exceptions #147

Merged
merged 3 commits into from
Nov 10, 2021

Conversation

tkrullmann
Copy link
Member

There is a bug in the DelegateReader (contributed by gradle-plugin-utils library) which leads to reader exceptions being "swallowed" in some cases.

In the case of SimpleTemplateEngineFilterReader and YamlTransformingFilterReader, the whole input is read first before the delegate reader is created. If there is an error while reading the input, the outer use block tries to close the outer reader, which would then trigger the reading of the input again, leading to another "stream closed" IOException that would hide the original error. This is now fixed in gradle-plugin-utils 0.4.0.

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