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

Pankaj Bansal pankaj.b.bansal at oracle.com
Wed Sep 20 12:42:41 UTC 2017


Hi All,

 

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

 

Bug:

https://bugs.openjdk.java.net/browse/JDK-8000171

 

Webrev:

http://cr.openjdk.java.net/~aghaisas/pankaj/8000171/webrev.0/

 

Issue:

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. 

 

Fix:

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.

 

 

Regards,

Pankaj Bansal

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


More information about the awt-dev mailing list