JDK-8339998 : KeyEvent/FunctionKeyTest.java fails: F11 / F12 key not received
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8u431
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux,windows
  • Submitted: 2024-09-12
  • Updated: 2024-09-16
  • Resolved: 2024-09-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8-poolResolved
Related Reports
Duplicate :  
Relates :  
Description
The java/awt/event/KeyEvent/FunctionKeyTest.java test intermittently fails on Linux:

----------System.out:(5/47)----------
e.id=1004
e.id=403
e.id=404
e.id=403
e.id=1005
----------System.err:(16/850)----------
java.lang.RuntimeException: F12 key release is not received

        at FunctionKeyTest.main(FunctionKeyTest.java:97)

----------System.out:(5/47)----------
e.id=1004
e.id=403
e.id=404
e.id=403
e.id=1005
----------System.err:(18/940)----------
java.lang.RuntimeException: F11 key press is not received
F12 key release is not received

        at FunctionKeyTest.main(FunctionKeyTest.java:97)
Comments
I reproduced the failure on Windows too, even though the test fails on Windows not as frequently as on Linux.
16-09-2024

This failure gets resolved by the updated test in JDK-8340007. The improved synchronisation of the test makes the test pass successfully.
16-09-2024