RFR: 8265152: jpackage cleanup fails on Windows with IOException deleting msi
Yasumasa Suenaga
ysuenaga at openjdk.java.net
Sun Apr 18 15:10:15 UTC 2021
When creating an "exe" installer on Windows, `AbstractBundler.cleanup()` calls `IOUtils.deleteRecursive()` to delete the tmp directory. It can intermittently fail trying to delete the msi file.
[JDK-8263135](https://bugs.openjdk.java.net/browse/JDK-8263135) removed `unique_ptr` from jpackage sources due to compiler warnings in VS 2019 (16.9.0), so we need to release the resource manually. However `DatabaseView` didn't do that.
-------------
Commit messages:
- 8265152: jpackage cleanup fails on Windows with IOException deleting msi
Changes: https://git.openjdk.java.net/jdk/pull/3560/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3560&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8265152
Stats: 6 lines in 1 file changed: 6 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/3560.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/3560/head:pull/3560
PR: https://git.openjdk.java.net/jdk/pull/3560
More information about the core-libs-dev
mailing list