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

java/awt/event/KeyEvent/KeyMaskTest/KeyMaskTest.java fails with wrong key code expected: 20 but was: 16

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 24
    • 24
    • client-libs
    • x86_64
    • os_x

      The following test failed in the JDK24 CI:

      java/awt/event/KeyEvent/KeyMaskTest/KeyMaskTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(7/273)----------
      command: main KeyMaskTest
      reason: User specified action: run main/timeout=300 KeyMaskTest
      started: Thu Aug 15 15:22:07 GMT 2024
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      finished: Thu Aug 15 15:22:10 GMT 2024
      elapsed time (seconds): 3.044
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(2/27)----------
      mac os x
      java.awt.Button:
      ----------System.err:(35/2888)----------
      java.lang.RuntimeException: wrong key code expected: 20 but was: 16
      at jdk.test.lib.Asserts.fail(Asserts.java:691)
      at jdk.test.lib.Asserts.assertEquals(Asserts.java:204)
      at jdk.test.lib.Asserts.assertEQ(Asserts.java:180)
      at KeyMaskTest.keyPressed(KeyMaskTest.java:141)
      at java.desktop/java.awt.Component.processKeyEvent(Component.java:6579)
      at java.desktop/java.awt.Component.processEvent(Component.java:6398)
      at java.desktop/java.awt.Button.processEvent(Button.java:375)
      at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4996)
      at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
      at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1942)
      at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:883)
      at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1146)
      at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1020)
      at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:848)
      at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4877)
      at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
      at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
      at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
      at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
      at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: wrong key code expected: 20 but was: 16
      ----------rerun:(45/8820)*----------

            abhiscxk Abhishek Kumar
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: