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

Rajat Mahajan rmahajan at openjdk.org
Fri Jan 12 21:43:36 UTC 2024


> 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:

  add test case for this change

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/17406/files
  - new: https://git.openjdk.org/jdk/pull/17406/files/0a8d9702..93a874c0

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=17406&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17406&range=01-02

  Stats: 9 lines in 1 file changed: 7 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/17406.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17406/head:pull/17406

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


More information about the client-libs-dev mailing list