RFR: 6714834: JarFile.getManifest() leaves an open InputStream as an undocumented side effect [v2]
Daniel Fuchs
dfuchs at openjdk.java.net
Tue Sep 15 15:57:35 UTC 2020
On Tue, 15 Sep 2020 15:45:05 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
> I'm curious, in the context of this change, why idempotency would be a necessity. Would there be a "double close"
> somehow on this `InputStream` instance?
My bad - I hadn't realised closing the input stream would also remove it from the Cleanable resource set, so I thought
it might be closed again when the jar file is closed.
-------------
PR: https://git.openjdk.java.net/jdk/pull/186
More information about the core-libs-dev
mailing list