JDK-8242930 : [macos] The java/awt/keyboard/AllKeyCode/AllKeyCode.java starts Help macOS subsystem machinery
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 14,15
  • Priority: P4
  • Status: In Progress
  • Resolution: Unresolved
  • OS: os_x
  • CPU: generic
  • Submitted: 2020-04-16
  • Updated: 2022-04-22
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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
This test presses a number of keys using the list of key codes.
It has two issues:
 - Each code is pressed/released only once so the toggled buttons will change their value. 
 - The test also presses the "help" button which starts the "macOS subsystem machinery", which changes the cursor, ignores all key presses and waits for the first mouse click on the component for which the help should be provided, which broke the tests executed later.

There are a few reasons why it was not found before, due to robot bug some key events were skipped. It also depends on what tests were executed later if some tests types something then they fail if they "just click" - they(and all other) pass.
Comments
To reproduce this standalone move the KeyEvent.VK_HELP, keycode at the beginning of the test and look at the behavior change(but the test will pass).
16-04-2020

Note that this could be a product bug, since as far as I understand the AWT does not use "help machinery" by default. So probably this request via the help button should be ignored.
16-04-2020