<Swing Dev> [12] Review Request: 8199072 Test javax/swing/GroupLayout/6613904/bug6613904.java is unstable
Philip Race
philip.race at oracle.com
Fri Nov 9 01:36:48 UTC 2018
+1
-phil.
On 11/8/18, 3:58 PM, Sergey Bylokhov wrote:
> Hello.
> Please review the fix for jdk 12.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8199072
> Webrev: http://cr.openjdk.java.net/~serb/8199072/webrev.00
>
> Bug was found when our tests executed in the "agentvm" mode.
> The reason of test failure was the jtreg not able to interrupt EDT,
> on which the test was executing.
>
> The root cause is that the test uses "invokeLater()", which do
> not wait when the runnable will be completed. And since jtreg will
> assumes that completion of the main() is the end of the test it will
> try to stop EDT.
>
> I have verified that if the fix for JDK-8199022(which
> added "javax/swing" to the "othervm.dirs" in the TEST.ROOT) is reverted,
> the test will start to fail again.
>
> Even if the test currently always passes, we have an opposite issue,
> the jtreg may report "PASS" status for the test even before the
> "Runnable"
> will start to execute.
>
> As a fix invokeLater() is replaced by the invokeAndWait().
>
>
More information about the swing-dev
mailing list