Integrated: 8370775: ModulePatcher$JarResourceFinder.getByteBuffer() does not close the InputStream after reading the bytes

Jaikiran Pai jpai at openjdk.org
Wed Oct 29 01:36:14 UTC 2025


On Tue, 28 Oct 2025 09:59:58 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 76995067
Author:    Jaikiran Pai <jpai at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/769950674e4258e73d040ddeab042125870b55b1
Stats:     5 lines in 1 file changed: 2 ins; 0 del; 3 mod

8370775: ModulePatcher$JarResourceFinder.getByteBuffer() does not close the InputStream after reading the bytes

Reviewed-by: alanb, fandreuzzi

-------------

PR: https://git.openjdk.org/jdk/pull/28014


More information about the core-libs-dev mailing list