RFR: 8159055: ImageIcon.setImage can't handle null parameter [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Jun 13 10:02:21 UTC 2025


On Fri, 13 Jun 2025 09:37:42 GMT, ExE Boss <duke at openjdk.org> wrote:

>> In constructor also, it returns
>> 
>> https://github.com/openjdk/jdk/blob/991097b7bf08cc1a4ceedb0c555b12948ae71885/src/java.desktop/share/classes/javax/swing/ImageIcon.java#L146-L148
>> https://github.com/openjdk/jdk/blob/991097b7bf08cc1a4ceedb0c555b12948ae71885/src/java.desktop/share/classes/javax/swing/ImageIcon.java#L185-L187
>
> Yes, but only after the `this.image` field is set to `null`.

ok

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25767#discussion_r2144671599


More information about the client-libs-dev mailing list