On Mon, 8 Jun 2026 10:31:48 GMT, Dusan Balek <[email protected]> wrote:

> An alternative approach would be to automatically close the URLClassLoader 
> when the JrtFileSystem is closed.

Your approach is pragmatic and no objection to javac closing the URLCassLoader. 
However, I think we should also change jrtfs so that FileSystem::close does its 
best to cleanup and not leave files open. This will help other tools that use 
jrtfs, at least going forward (nothing we can do with the jrt provider 
implementation in JDK releases that have already shipped).

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

PR Comment: https://git.openjdk.org/jdk/pull/31417#issuecomment-4648950717

Reply via email to