--- old/test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentSwing.java 2017-11-07 21:56:17.581011000 +0530 +++ new/test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/PerPixelTranslucentSwing.java 2017-11-07 21:56:17.405011000 +0530 @@ -88,7 +88,7 @@ Color color = robot.getPixelColor(loc.x + bounds.width / 2, loc.y + bounds.height + 3); System.out.println(color); - if (FG_COLOR.getRGB() == color.getRGB()) + if (BG_COLOR.getRGB() != color.getRGB()) throw new RuntimeException("Background is not translucent (" + color + ")"); EventQueue.invokeAndWait(this::dispose);