RFR: 8374222: jpackage will exit with error if it fails to clean the temp directory
Alexey Semenyuk
asemenyuk at openjdk.org
Fri Feb 13 13:16:06 UTC 2026
jpackage will attempt to delete the temp directory a few times. If all attempts fail, it will print remaining files and empty directories (100 entries at most) to the console and continue. It will not exit with an error status as previously, as this is not a critical error.
-------------
Commit messages:
- Applied blessed-modifier-order.sh
- TempDirectory: drop redundant synchronization (presumably Files.walkFileTree() will not call method on the supplied FileVisitor concurrently); Better coverage, fix a bug in the implementation.
- PathDeletionPreventer: helper that encapsulates platform specifics to lock a file or directory and cause IOException in tests when trying to delete it
- 8374222: jpackage will exit with error if it failes to clean the temp directory
Changes: https://git.openjdk.org/jdk/pull/29664/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29664&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8374222
Stats: 880 lines in 5 files changed: 863 ins; 7 del; 10 mod
Patch: https://git.openjdk.org/jdk/pull/29664.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29664/head:pull/29664
PR: https://git.openjdk.org/jdk/pull/29664
More information about the core-libs-dev
mailing list