RFR: 8347277: java/awt/Focus/ComponentLostFocusTest.java fails intermittently
Manukumar V S
mvs at openjdk.org
Tue Sep 2 07:21:34 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.
-------------
Commit messages:
- 8347277: java/awt/Focus/ComponentLostFocusTest.java fails intermittently
Changes: https://git.openjdk.org/jdk/pull/27039/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27039&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8347277
Stats: 31 lines in 1 file changed: 19 ins; 6 del; 6 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