--- old/test/java/awt/Component/PrintAllXcheckJNI/PrintAllXcheckJNI.java 2017-09-20 18:01:28.243173963 +0530 +++ new/test/java/awt/Component/PrintAllXcheckJNI/PrintAllXcheckJNI.java 2017-09-20 18:01:28.059081963 +0530 @@ -30,7 +30,8 @@ @run main/othervm -Xcheck:jni PrintAllXcheckJNI */ -import java.awt.*; +import java.awt.Frame; +import java.awt.Graphics2D; import java.awt.image.BufferedImage; public class PrintAllXcheckJNI @@ -38,6 +39,7 @@ public static void main(String []s) { Frame frame = new Frame(); + frame.setBounds(100, 100, 100,100); frame.setVisible(true); BufferedImage img = new BufferedImage(frame.getWidth(),