-
Enhancement
-
Resolution: Duplicate
-
P5
-
None
-
None
-
None
When calling jdk.internal.module.ModulePath.readModule(...) with a jar on a custom file system it creates a temp directory to copy the jar to the local filesystem. These jar and directory are left behind when the VM terminates.
You can see this when executing the jdk jtreg test java/lang/module/customfs/ModulesInCustomFileSystem.java. It will leave two directories starting with mlib in the temp directory.
I would suggest to use deleteOnExit() on the created directory and the copied jar file to avoid this.
You can see this when executing the jdk jtreg test java/lang/module/customfs/ModulesInCustomFileSystem.java. It will leave two directories starting with mlib in the temp directory.
I would suggest to use deleteOnExit() on the created directory and the copied jar file to avoid this.
- duplicates
-
JDK-8272437 ModulePath leaves behind mlib temp dirs for non default file systems
-
- Open
-