On Tue, 2 Sep 2025 07:29:38 GMT, Manukumar V S <m...@openjdk.org> 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 62:

> 60:     static volatile int width;
> 61:     static volatile int top;
> 62:     static CountDownLatch focusGainedLatch = new CountDownLatch(1);

This can be `final`

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27039#discussion_r2315268668

Reply via email to