[OpenJDK 2D-Dev] [10] RFR JDK-8183349: Better cleanup for jdk/test/javax/imageio/plugins/shared/CanWriteSequence.java and WriteAfterAbort.java
Jayathirth D V
jayathirth.d.v at oracle.com
Mon Jul 10 10:41:50 UTC 2017
Hello All,
Please review the following fix in JDK10 :
Bug : https://bugs.openjdk.java.net/browse/JDK-8183349
Webrev : http://cr.openjdk.java.net/~jdv/8183349/webrev.00/
Issue : Temporary image files created in test case are not getting deleted after test execution is finished.
Root cause : ImageOutputStream related to the file was closed previously and not FileOutputStream which was its parent.
Solution : Closing the FileOutputStream allows us to delete temporary file. Also replaced file.deleteOnExit() with Files.delete().
Thanks,
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20170710/ad5b3f82/attachment.html>
More information about the 2d-dev
mailing list