On Wed, 18 Jun 2025 02:39:53 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

> it is done intentionally to throw an exception if the file is locked.

A comment would've clarified the intention.

This also means that if the test fails for whatever reason and `Files.delete` 
throws the exception, the original exception gets replaced with `IOException` 
from deleting the file.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25698#discussion_r2154701920

Reply via email to