RFR: 8159055: ImageIcon.setImage can't handle null parameter [v15]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Wed Jul 23 03:27:01 UTC 2025
On Tue, 22 Jul 2025 18:07:52 GMT, Phil Race <prr at openjdk.org> wrote:
>> Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - Document NPE behaviour and update test and add class-level statement
>> - Document NPE behaviour and update test and add class-level statement
>
> src/java.desktop/share/classes/javax/swing/ImageIcon.java line 388:
>
>> 386: public void setImage(Image image) {
>> 387: this.image = image;
>> 388: if (image == null) {
>
> Umm. We had decided (in the end) to document the NPE.
fixed
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25767#discussion_r2224239516
More information about the client-libs-dev
mailing list