<Swing Dev> Remove System.out.println from ImageIcon.loadImage

Matthias Perktold - ASA matthias.perktold at asaon.com
Sun Jan 5 08:53:19 UTC 2020


Hi all,

In javax.swing.ImageIcon.loadImage(), there is a call to System.out.println() when loading the Image has been interrupted.

In our system, this is a problem because redirect System.out to be displayed to the user to make sure no errors remain unnoticed.

But in this case, the message does not really represent an error, so we should not display a message.

Instead, I propose to restore the interrupt status.

Best regards,
Matthias Perktold
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20200105/108c9d8b/attachment.htm>


More information about the swing-dev mailing list