On Mon, 1 Dec 2025 06:08:00 GMT, Jaikiran Pai <[email protected]> wrote:

> Can I please get a review of this change which proposes to address the issue 
> noted in https://bugs.openjdk.org/browse/JDK-8372787?
> 
> The commit in this PR updates several methods in the 
> `jdk.internal.module.ModulePatcher$PatchedModuleReader` to throw an 
> `IOException` if the `ModuleReader` has been closed. This updated 
> implementation now matches the specification of the corresponding methods in 
> `ModuleReader`.
> 
> A new jtreg test has been introduced to reproduce the issue and verify the 
> fix. CI testing is currently in progress with this change.

This pull request has now been integrated.

Changeset: 07856fce
Author:    Jaikiran Pai <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/07856fce34ba14a83fc1ac0faffe3b5ba883e0b5
Stats:     155 lines in 3 files changed: 151 ins; 2 del; 2 mod

8372787: ModuleReader should throw IOException consistently when using 
--patch-module and ModuleReader is closed

Reviewed-by: alanb

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

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

Reply via email to