RFR: 8320328: Restore interrupted flag in ImageIcon.loadImage [v4]
Rajat Mahajan
rmahajan at openjdk.org
Fri Jan 12 21:53:44 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:
Update LoadInterruptTest.java
removed extra blank lines.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/17406/files
- new: https://git.openjdk.org/jdk/pull/17406/files/93a874c0..e5833ac0
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=17406&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=17406&range=02-03
Stats: 2 lines in 1 file changed: 0 ins; 2 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
More information about the client-libs-dev
mailing list