<AWT Dev> [10] Review Request: JDK-8000171 : [TEST_BUG] java/awt/GridLayout/LayoutExtraGaps/LayoutExtraGaps.java

Sergey Bylokhov sergey.bylokhov at oracle.com
Wed Sep 20 14:40:34 UTC 2017

Hi, Pankaj. 
The SunToolkit.realSync method is now a part of the public API, the Robot.waitForIdle() is implemented on top of it. If this particular test can produce such exception then it looks like a product issue, not a test bug. 

----- pankaj.b.bansal at oracle.com wrote: 

Hi All, 

Please review the fix for test program test java/awt/GridLayout/LayoutExtraGaps/LayoutExtraGaps.java for JDK 10. 






The test java/awt/GridLayout/LayoutExtraGaps/LayoutExtraGaps.java fails on Windows as it throws SunToolkit.Infinite loop exception. The reason is it is using SunToolkit.realSync which throws this exception after fixed number of tries. 


Made changes java/awt/GridLayout/LayoutExtraGaps/LayoutExtraGaps.java to use Thread.sleep. The fix iterates until the frame become visible. This test is passing on Windows, Linux and Mac with the proposed fix. 


Pankaj Bansal 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20170920/b711b3f5/attachment.html>

More information about the awt-dev mailing list