<AWT Dev>  Review Request: JDK-6857809 : [TEST_BUG] java/awt/Component/PrintAllXcheckJNI/PrintAllXcheckJNI.java
pankaj.b.bansal at oracle.com
Wed Sep 20 16:21:04 UTC 2017
I think the issue is because no size is set on frame. This is also the proposed fix in the bug description.
From: Semyon Sadetsky
Sent: Wednesday, September 20, 2017 9:02 PM
To: Pankaj Bansal; awt-dev at openjdk.java.net
Subject: Re: <AWT Dev>  Review Request: JDK-6857809 : [TEST_BUG] java/awt/Component/PrintAllXcheckJNI/PrintAllXcheckJNI.java
The root cause of the issue is that the underling native window is not yet created when its with and height are requested. This is because windows are created asynchronously. The test should be fixed by adding Robot.waitForIdle() after frame.setVisible(true).
On 09/20/2017 05:49 AM, Pankaj Bansal wrote:
Please review the fix for test program test java/awt/Component/PrintAllXcheckJNI/PrintAllXcheckJNI.java for JDK 10.
The test java/awt/Component/PrintAllXcheckJNI/PrintAllXcheckJNI.java fails on Linux intermittently due to "java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0" exception.
Made changes in java/awt/Component/PrintAllXcheckJNI/PrintAllXcheckJNI.java to set the size of frame to make the test more stable.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev