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

Manukumar V S mvs at openjdk.org
Thu Sep 4 03:40:25 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:

  Removed unwanted changes from .gitignore

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

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

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

  Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 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