RFR: 8342508: Use latch in BasicMenuUI/bug4983388.java instead of delay [v3]
Alexander Zvegintsev
azvegint at openjdk.org
Mon Oct 21 15:38:30 UTC 2024
On Mon, 21 Oct 2024 14:13:44 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.
>
> Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision:
>
> Use method reference to dispose of the frame
Marked as reviewed by azvegint (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/21585#pullrequestreview-2382499192
More information about the client-libs-dev
mailing list