RFR: 8320328: Restore interrupted flag in ImageIcon.loadImage [v4]

Alexey Ivanov aivanov at openjdk.org
Fri Jan 12 21:53:44 UTC 2024


On Fri, 12 Jan 2024 21:51:07 GMT, Rajat Mahajan <rmahajan at openjdk.org> 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.
>
> Rajat Mahajan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update LoadInterruptTest.java
>   
>   removed extra blank lines.

Marked as reviewed by aivanov (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/17406#pullrequestreview-1819115492


More information about the client-libs-dev mailing list