Integrated: 8339850: Restore the interrupt status in FileSystemPreferences.lockFile()
sbgoog
duke at openjdk.org
Wed Oct 2 15:33:41 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 pull request has now been integrated.
Changeset: 9fc1c684
Author: Sorin Basca <sorinbasca at google.com>
Committer: Liam Miller-Cushon <cushon at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/9fc1c684421043ac8df9ac7cd10fefd2a75e7a6b
Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod
8339850: Restore the interrupt status in FileSystemPreferences.lockFile()
Reviewed-by: bpb, djelinski, vtewari
-------------
PR: https://git.openjdk.org/jdk/pull/20938
More information about the core-libs-dev
mailing list