On Tue, 10 Sep 2024 16:37:11 GMT, sbgoog <d...@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 <sorinba...@google.com>
Committer: Liam Miller-Cushon <cus...@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

Reply via email to