RFR: 8339850: Restore the interrupt status in FileSystemPreferences.lockFile()
sbgoog
duke at openjdk.org
Fri Sep 27 14:41:36 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.
This PR needs another reviewer. Is there someone that can have a look at it?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20938#issuecomment-2379437283
More information about the core-libs-dev
mailing list