-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: core-libs
-
generic
-
generic
AnnotationsTest.java creates a temporary directory for the test but does not clean it up later:
cat -n jdk/test/java/lang/ModuleTests/AnnotationsTest.java
[...]
77 Path dir = Files.createTempDirectory("mods");
The preferred approach would be to create temporary test files under the jtreg property user.dir instead, if it is defined.
During a jtreg run, user.dir has the value $PWD/JTwork/scratch
cat -n jdk/test/java/lang/ModuleTests/AnnotationsTest.java
[...]
77 Path dir = Files.createTempDirectory("mods");
The preferred approach would be to create temporary test files under the jtreg property user.dir instead, if it is defined.
During a jtreg run, user.dir has the value $PWD/JTwork/scratch