On Tue, 2 Sep 2025 07:29:38 GMT, Manukumar V S <[email protected]> wrote:
>> Issue:
>> java/awt/Focus/ComponentLostFocusTest.java fails intermittently(2/40) with
>> an exception " Execution failed: `main' threw exception:
>> java.lang.RuntimeException: TextField got no focus! Test failed."
>> I have seen it failing in all platforms, but predominantly in macos platform.
>> It fails sometimes in CI also.
>>
>> Fix:
>> Added a countdownlatch for tracking focusGained
>> Added screenshot logic
>>
>> Testing:
>> Tested in all mach5 platforms and got all PASS.
>
> Manukumar V S has updated the pull request incrementally with one additional
> commit since the last revision:
>
> Removed package statement
test/jdk/java/awt/Focus/ComponentLostFocusTest.java line 157:
> 155: if (!focusGainedLatch.await(5, TimeUnit.SECONDS)) {
> 156: captureScreen();
> 157: throw new RuntimeException("Waited too long, TextField
> got no focus! Test failed.");
please split the long lines
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27039#discussion_r2316838513