RFR: 8370775: ModulePatcher$JarResourceFinder.getByteBuffer() does not close the InputStream after reading the bytes
Jaikiran Pai
jpai at openjdk.org
Tue Oct 28 10:07:57 UTC 2025
Can I please get a review of this code which closes the `InputStream` upon usage in `ModulePatcher$JarResourceFinder.getByteBuffer()`?
As noted in https://bugs.openjdk.org/browse/JDK-8370775, this is a minor clean up to this part of the code.
tier testing is currently in progress with this change.
-------------
Commit messages:
- 8370775: ModulePatcher.getByteBuffer() does not close the InputStream after reading the bytes
Changes: https://git.openjdk.org/jdk/pull/28014/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28014&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8370775
Stats: 5 lines in 1 file changed: 2 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/28014.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28014/head:pull/28014
PR: https://git.openjdk.org/jdk/pull/28014
More information about the core-libs-dev
mailing list