[crac] RFR: 8368570: [CRaC] Improve JdwpTransportTest [v4]

Roman Marchenko rmarchenko at openjdk.org
Mon Sep 29 12:17:33 UTC 2025


On Mon, 29 Sep 2025 12:07:38 GMT, Timofei Pushkin <tpushkin at openjdk.org> wrote:

>> Autocloseable is ok for me, but these two cannot be used in catch and finally blocks in case they are resources.
>
> Oh, yes, then there should be either another wrapping try-with-resources or explicit `close` calls in the existing `finally`

OK, I've done this.
However, in this particular case, it seems like `process.destroyForcibly()` should guarantee the streams are closed from the prosess' side.

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

PR Review Comment: https://git.openjdk.org/crac/pull/265#discussion_r2387728563


More information about the crac-dev mailing list