RFR: 8159055: Clarify handling of null and invalid image data for ImageIcon constructors and setImage method [v24]

Alexey Ivanov aivanov at openjdk.org
Tue Jul 29 20:33:00 UTC 2025


On Tue, 29 Jul 2025 18:55:47 GMT, Phil Race <prr at openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with three additional commits since the last revision:
>> 
>>  - Modify summary
>>  - Modify summary
>>  - Remove redundant fileName param
>
> src/java.desktop/share/classes/javax/swing/ImageIcon.java line 68:
> 
>> 66:  * If the image source parameter to a constructor or method is non-null,
>> 67:  * but does not reference valid accessible image data,
>> 68:  * no exceptions will be thrown but the image will be unset,
> 
> "will behave as if unset" ?
> or maybe 
> "will behave as if uninitialized " ?

“will behave as if the image is null”?

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

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


More information about the client-libs-dev mailing list