JDK-8155742 : [Windows] robot.keyPress(KeyEvent.VK_ALT_GRAPH) throws java.lang.IllegalArgumentException in windows
  • Type: Bug
  • Component: client-libs
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2016-04-29
  • Updated: 2022-07-11
  • Resolved: 2016-05-05
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 JDK 9 Other
8u311Fixed 9 b120Fixed openjdk8u352Fixed
Related Reports
Relates :  
Description
robot.keyPress(KeyEvent.VK_ALT_GRAPH) throws java.lang.IllegalArgumentException in windows,
 
Exception in thread "main" java.lang.IllegalArgumentException: Invalid key code
                at sun.awt.windows.WRobotPeer.keyPress(java.desktop@9-internal/Native Method)
                at java.awt.Robot.keyPress(java.desktop@9-internal/Robot.java:353)
Comments
Fix request (8u) This issue is observed on jdk8u as well. This patch fixes the failures of ModifierRobotKeyTest.java, AltGraphModifierTest.java and RightAltKeyTest.java (included by JDK-8194873) on Windows.
02-06-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk8u-dev/pull/60 Date: 2022-05-17 18:31:23 +0000
28-05-2022

8u backport has dependency on JDK-8041928 backport.
14-10-2021

URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/80766aba7d32 User: lana Date: 2016-05-25 17:36:43 +0000
25-05-2016

URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/80766aba7d32 User: serb Date: 2016-05-05 11:58:31 +0000
05-05-2016