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

Manukumar V S mvs at openjdk.org
Thu Sep 4 03:36:56 UTC 2025


> 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:

  Copyright year changed

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27039/files
  - new: https://git.openjdk.org/jdk/pull/27039/files/1ea3a8ae..172c088d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27039&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27039&range=02-03

  Stats: 3 lines in 2 files changed: 2 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/27039.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27039/head:pull/27039

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


More information about the client-libs-dev mailing list