On Fri, 12 Jan 2024 19:17:24 GMT, Rajat Mahajan <[email protected]> wrote:

> ImageIcon.loadImage used to handle InterruptedException only by printing a 
> message to the console. JDK-8236987 handled the interrupted state more 
> gracefully, but it didn't restore the interrupted flag.
> This change restores the interrupted flag that will allow the following code 
> to handle interruption and exit the thread; otherwise, the thread will 
> continue to run.

This pull request has now been integrated.

Changeset: f368a0c1
Author:    Rajat Mahajan <[email protected]>
Committer: Alexey Ivanov <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/f368a0c12e0c51054fa89dfae8d4116fa535debf
Stats:     11 lines in 2 files changed: 7 ins; 1 del; 3 mod

8320328: Restore interrupted flag in ImageIcon.loadImage

Reviewed-by: aivanov, serb

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

PR: https://git.openjdk.org/jdk/pull/17406

Reply via email to