FIleSystemPreferences.lockFile() catches an InterruptedException and just 
returns false, forgetting to re-interrupt the current thread. This leaves the 
caller with no way to observe that the thread was interrupted. This change 
restores the interrupted status on the current thread before returning.

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

Commit messages:
 - 8339850: Restore the interrupt status in FileSystemPreferences.lockFile()

Changes: https://git.openjdk.org/jdk/pull/20938/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20938&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8339850
  Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/20938.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20938/head:pull/20938

PR: https://git.openjdk.org/jdk/pull/20938

Reply via email to