Details
-
Bug
-
Resolution: Fixed
-
P4
-
10
-
b23
-
generic
-
generic
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8250836 | openjdk8u272 | Zhengyu Gu | P4 | Resolved | Fixed | b02 |
JDK-8247520 | 8u271 | Sergey Bylokhov | P4 | Resolved | Fixed | b01 |
JDK-8251713 | emb-8u271 | Jayathirth D V | P4 | Resolved | Fixed | team |
Description
CanWriteSequence.java and WriteAfterAbort.java are creating files in the system default temp directory:
% cat -n jdk/test/javax/imageio/plugins/shared/CanWriteSequence.java jdk/test/javax/imageio/plugins/shared/WriteAfterAbort.java | grep createTemp
57 final File file = File.createTempFile("temp", ".img");
68 final File file = File.createTempFile("temp", ".img");
These files are left behind, even though the tests also set file.deleteOnExit():
The preferred approach would be to create temporary test directories and files under the jtreg property test.dir instead, if it is defined.
% cat -n jdk/test/javax/imageio/plugins/shared/CanWriteSequence.java jdk/test/javax/imageio/plugins/shared/WriteAfterAbort.java | grep createTemp
57 final File file = File.createTempFile("temp", ".img");
68 final File file = File.createTempFile("temp", ".img");
These files are left behind, even though the tests also set file.deleteOnExit():
The preferred approach would be to create temporary test directories and files under the jtreg property test.dir instead, if it is defined.
Attachments
Issue Links
- backported by
-
JDK-8247520 Better cleanup for jdk/test/javax/imageio/plugins/shared/CanWriteSequence.java and WriteAfterAbort.java
- Resolved
-
JDK-8250836 Better cleanup for jdk/test/javax/imageio/plugins/shared/CanWriteSequence.java and WriteAfterAbort.java
- Resolved
-
JDK-8251713 Better cleanup for jdk/test/javax/imageio/plugins/shared/CanWriteSequence.java and WriteAfterAbort.java
- Resolved
- relates to
-
JDK-8250755 Better cleanup for jdk/test/javax/imageio/plugins/shared/CanWriteSequence.java
- Resolved