<AWT Dev>  Review request for 8132299: Test java/awt/Robot/ModifierRobotKey/ModifierRobotKeyTest.java fails on Linux
ambarish.rapte at oracle.com
Thu Apr 20 05:13:16 UTC 2017
Fix looks good to me.
From: Semyon Sadetsky
Sent: Friday, April 14, 2017 3:15 AM
Subject: <AWT Dev>  Review request for 8132299: Test java/awt/Robot/ModifierRobotKey/ModifierRobotKeyTest.java fails on Linux
Please review fix for JDK9:
The issue itself is a linux/solaris specific. Alt-Gr modifier bit (1<<5) is not set in the KeyPress event which is sent by the closing key in the combination (which action should be modified). On platforms other than linux/solaris the ModifierRobotKeyTest.java successfully passes but takes a lot of time to execute.
Linux has two special keys assigned for 5th column as xmodmap command
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
Java implementation uses Mode_switch native key for mapping to Alt-Gr.
But Mode_switch is not processed as a modifier key by the native platform while ISO_Level3_Shift is processed as modifier. So, changing this mapping solves the problem.
Also, the ModifierRobotKeyTest.java is modified in the fix to decrease its execution time.
More information about the awt-dev