RFR: 8159055: Clarify handling of null and invalid image data for ImageIcon constructors and setImage method [v24]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Sun Aug 3 06:18:15 UTC 2025
On Fri, 1 Aug 2025 20:20:28 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>>> “will behave as if the image is null”
>>
>> That's got the same mention of null that Joe was questioning
>>
>>>"no exceptions will be thrown but no image icon will be rendered"
>>
>> That seems OK to me. I'd just drop the word 'icon'.
>
> To make things clearer, we may mention that the `getImage` method will return a non-null value, yet no image will be rendered because `{@link #getImageLoadStatus()}` will report `{@code MediaTracker.ERRORED}`.
Updated the class-level javadoc
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25767#discussion_r2249583976
More information about the client-libs-dev
mailing list