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.

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

Commit messages:
 - Restore the interrupted flag.

Changes: https://git.openjdk.org/jdk/pull/17406/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17406&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8320328
  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 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

Reply via email to