On Tue, 9 Jun 2026 13:16:23 GMT, Alexey Ivanov <[email protected]> wrote:
>> Arno Zeller has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> Add timeout to CountDownLatch and use Utils.adjustTimeout.
>
> test/jdk/javax/swing/SwingWorker/TestDoneBeforeDoInBackground.java line 57:
>
>> 55: try {
>> 56: while (true) {
>> 57: workerStarted.countDown();
>
> Why not call `workerStarted.countDown()` before the loop starts? It should be
> a one-time thing rather than a repeated action.
I moved `workerStarted.countDown()` out of the loop.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/31348#discussion_r3381634241