Integrated: 8342508: Use latch in BasicMenuUI/bug4983388.java instead of delay

Alexey Ivanov aivanov at openjdk.org
Tue Nov 19 17:19:05 UTC 2024


On Fri, 18 Oct 2024 15:12:06 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Use a `CountDownLatch` in `javax/swing/plaf/basic/BasicMenuUI/4983388/bug4983388.java` instead of delay.
> 
> The latch provides a direct way to synchronise EDT and main thread, the test will finish quicker.
> 
> I ran the updated test a few times with `JTREG=REPEAT_COUNT=20`, the test always passed in the CI.

This pull request has now been integrated.

Changeset: 02ec8ca2
Author:    Alexey Ivanov <aivanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/02ec8ca2d6ccbabc6740b60be8fe1f8b2110f0ca
Stats:     49 lines in 1 file changed: 25 ins; 16 del; 8 mod

8342508: Use latch in BasicMenuUI/bug4983388.java instead of delay

Reviewed-by: azvegint, abhiscxk, serb

-------------

PR: https://git.openjdk.org/jdk/pull/21585


More information about the client-libs-dev mailing list