RFR: 8339850: Restore the interrupt status in FileSystemPreferences.lockFile()

Brian Burkhalter bpb at openjdk.org
Thu Sep 12 21:08:03 UTC 2024


On Tue, 10 Sep 2024 16:37:11 GMT, sbgoog <duke at openjdk.org> wrote:

> 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.

Looks all right.

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

Marked as reviewed by bpb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/20938#pullrequestreview-2301418242


More information about the core-libs-dev mailing list