Integrated: 8320328: Restore interrupted flag in ImageIcon.loadImage

Rajat Mahajan rmahajan at openjdk.org
Mon Jan 15 13:11:29 UTC 2024


On Fri, 12 Jan 2024 19:17:24 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.

This pull request has now been integrated.

Changeset: f368a0c1
Author:    Rajat Mahajan <rmahajan at openjdk.org>
Committer: Alexey Ivanov <aivanov at openjdk.org>
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


More information about the client-libs-dev mailing list