The test java/awt/KeyboardFocusmanager/ConsumeNextMnemonicKeyTypedTest/ConsumeNextMnemonicKeyTypedTest.java was updated in JDK-8063104, yet this fix cannot be backported to 8u because it should continue to use toolkit.realSync().
Yet in addition to that change, JDK-8063104 added support for macOS:
+ if (Platform.isOSX()) {
+ robot.keyPress(KeyEvent.VK_CONTROL);
+ }
robot.keyPress(KeyEvent.VK_ALT);
// other keyPress
robot.keyRelease(KeyEvent.VK_ALT);
+ if (Platform.isOSX()) {
+ robot.keyRelease(KeyEvent.VK_CONTROL);
+ }
This change should be applied and then the test can be removed from ProblemList.txt for macos.