RFR: 8284888 : [macos] javax/swing/JInternalFrame/8146321/JInternalFrameIconTest.java failed with "NimbusLookAndFeel] : ERROR: icon and imageIcon not same."

Sergey Bylokhov serb at openjdk.java.net
Thu Apr 28 23:20:43 UTC 2022


On Wed, 27 Apr 2022 07:35:44 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> Not sure I understand. It does not render same image twice but it renders an `ImageIcon `and an `Icon `and compare the bufferedimage of those 2 so I guess it alright to not have exact color check ` if (red1 != red2 || green1 != green2 || blue1 != blue2) {` and rely on color tolerance which we have in many tests involving bufferedimages..

Sure these are not the same images, but still, we render images and get different results, on one specific system? If the robot is not a root cause then looks like the difference occurrs somewhere in the rendering pipeline?

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

PR: https://git.openjdk.java.net/jdk/pull/8380



More information about the client-libs-dev mailing list