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

Daniel Jeliński djelinski at openjdk.org
Mon Sep 30 16:01:38 UTC 2024


On Mon, 30 Sep 2024 14:31:51 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.
>
> sbgoog has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:
> 
>   8339850: Restore the interrupt status in FileSystemPreferences.lockFile()

For future reference, as the bot says, don't force push. The bot will squash all commits before merging.

The change looks good to me. Please update the copyright year.

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

PR Comment: https://git.openjdk.org/jdk/pull/20938#issuecomment-2383594566


More information about the core-libs-dev mailing list