Closing ClassfileReader must also close its underlying Resource.#600
Conversation
b1e65e3 to
51ffab7
Compare
51ffab7 to
2829313
Compare
|
@chrisr3 This is the correct fix -- thank you for this pull request, and for the unit test! Released in version 4.8.134. |
Thanks @lukehutch, although I wasn't quite expecting it to be merged just yet. I think there is still an issue with ClasspathElementModule.java because closing the |
|
@chrisr3 Good catch, please see the latest commit above, and let me know if this resolves your concern. I'll check the rest of the |
|
Hi @lukehutch, Not really, because the Chris |
|
@chrisr3 Yes, I just realized this and removed the last commit :-) I understand the concern now. I have an InputStream wrapper in ClassGraph that allows a custom close action to be added. I'll wrap it in that. |
|
@chrisr3 OK, closing the However I noticed another problem: the Last time I tried implementing a custom |
|
I extended the Released these fixes in version 4.8.135. Thanks! |
Upgrading from 4.8.90 to 4.8.133, I have noticed that the resources returned by
scanResult.allResourcesare now in an "open" state, such that invokingopen()on them throws anIOExceptionwith the message:I believe I have a fix for this, and am currently trying to write some test cases.