RFR: 8355954: File.delete removes read-only files (win) [v3]

Brian Burkhalter bpb at openjdk.org
Thu May 15 15:54:53 UTC 2025


On Thu, 15 May 2025 11:11:06 GMT, Johannes Döbler <duke at openjdk.org> wrote:

> [I]t could be useful to let JUnit create and inject a temporary root directory [...]

I am not sure about this. The temporary file path created by JUnit, on macOS at least, is in a different directory hierarchy (`/var/...`) from the jtreg work directory (`/tmp/...`) so jtreg's own cleanup phase might not remove files if there are any straggling.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/24977#discussion_r2091502403


More information about the core-libs-dev mailing list