Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8333009

Handle ConsumeNextMnemonicKeyTypedTest.java failure in 8u

XMLWordPrintable

    • b01
    • os_x

      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.

            rkannathpari Renjith Kannath Pariyangad
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: