Integrated: 8347277: java/awt/Focus/ComponentLostFocusTest.java fails intermittently

Manukumar V S mvs at openjdk.org
Fri Sep 5 19:53:16 UTC 2025


On Tue, 2 Sep 2025 07:16:20 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.

This pull request has now been integrated.

Changeset: e2a503e2
Author:    Manukumar V S <mvs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/e2a503e26ee2a3c428c5db0cd4cbe71cdc7d837f
Stats:     32 lines in 1 file changed: 20 ins; 6 del; 6 mod

8347277: java/awt/Focus/ComponentLostFocusTest.java fails intermittently

Reviewed-by: serb

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

PR: https://git.openjdk.org/jdk/pull/27039


More information about the client-libs-dev mailing list