RFR: 8347277: java/awt/Focus/ComponentLostFocusTest.java fails intermittently [v3]

Sergey Bylokhov serb at openjdk.org
Thu Sep 4 02:54:42 UTC 2025


On Wed, 3 Sep 2025 05:23:02 GMT, Manukumar V S <mvs at 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:
> 
>   Review comments fixed: formatting changes

Marked as reviewed by serb (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/27039#pullrequestreview-3183225499


More information about the client-libs-dev mailing list