Hi, following the documentation of ModulLayer [1] to create a temporary layer for testing, results in a FileSystemException when trying to delete the modular jar file after tests are finished.
On Windows, at least. Find more details and a minimal working example here: [2] An implementation of a `Loader.close()` method similar to the one found URLClassLoader [3] would solve the problem. Shall I open an issue over at https://bugs.openjdk.java.net? Cheers, Christian [1] https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/lang/ModuleLayer.html [2] https://sormuras.github.io/blog/2019-05-26-jdk-module-layer-class-loader [3] https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/net/URLClassLoader.html#close()