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.ban...@oracle.com wrote: > > > 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