Integrated: 8374819: jpackage and jpackage tests leave some I/O streams unclosed
Alexey Semenyuk
asemenyuk at openjdk.org
Fri Jan 9 23:39:54 UTC 2026
On Mon, 29 Dec 2025 23:29:11 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:
> - Replace `Files.newInputStream(path)` in chain method calls with either `new ByteArrayInputStream(Files.readAllBytes(path))` or `path.toFile()` if there is an alternative method taking a `File` instance instead of an `InputStream` and if appropriate.
> - Add missing try-with-resources for `Class.getResourceAsStream()` calls.
This pull request has now been integrated.
Changeset: 74faf033
Author: Alexey Semenyuk <asemenyuk at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/74faf033127ab3a5e28be75b91e662c589f81084
Stats: 45 lines in 7 files changed: 20 ins; 8 del; 17 mod
8374819: jpackage and jpackage tests leave some I/O streams unclosed
Reviewed-by: almatvee
-------------
PR: https://git.openjdk.org/jdk/pull/29007
More information about the core-libs-dev
mailing list