-
Bug
-
Resolution: Fixed
-
P4
-
21, 22
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8318166 | 21.0.2 | Aleksey Shipilev | P4 | Resolved | Fixed | b03 |
test/jdk/java/io/File/TempDirDoesNotExist.java creates temp files in
System.getProperty("user.home")
using:
File.createTempFile("prefix", ".suffix");
There is no finally block in the test to delete the TempFile later.
After a few weeks of running tests this leaves test systems with many prefix*.suffix files littering the user home directory.
This test also appears to be one which would benefit from conversion to JUnit 5.
System.getProperty("user.home")
using:
File.createTempFile("prefix", ".suffix");
There is no finally block in the test to delete the TempFile later.
After a few weeks of running tests this leaves test systems with many prefix*.suffix files littering the user home directory.
This test also appears to be one which would benefit from conversion to JUnit 5.
- backported by
-
JDK-8318166 test/jdk/java/io/File/TempDirDoesNotExist.java leaves test files behind
- Resolved
- relates to
-
JDK-8290313 Produce warning when user specified java.io.tmpdir directory doesn't exist
- Closed
- links to
-
Commit openjdk/jdk21u/017b78b3
-
Commit openjdk/jdk/373cdf25
-
Review openjdk/jdk21u/246
-
Review openjdk/jdk/15757
(1 links to)