<AWT Dev>  Review Request: JDK-8000171 : [TEST_BUG] java/awt/GridLayout/LayoutExtraGaps/LayoutExtraGaps.java
sergey.bylokhov at oracle.com
Wed Sep 20 14:40:34 UTC 2017
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:
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev