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

Intermittent open/test/jdk/java/awt/KeyboardFocusmanager/ConsumeNextMnemonicKeyTypedTest/ConsumeNextMnemonicKeyTypedTest.java failure on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 11, 17, 19, 21, 22
    • client-libs

      While working on JDK-8305825, I saw intermittent failures of open/test/jdk/java/awt/KeyboardFocusmanager/ConsumeNextMnemonicKeyTypedTest/ConsumeNextMnemonicKeyTypedTest.java:


      ----------System.out:(1/50)----------
      Test: character typed after mnemonic key press: i
      ----------System.err:(14/827)----------
      Test: character typed with VK_A: a
      java.lang.RuntimeException: Test failed!
      at ConsumeNextMnemonicKeyTypedTest.test(ConsumeNextMnemonicKeyTypedTest.java:142)
      at ConsumeNextMnemonicKeyTypedTest.start(ConsumeNextMnemonicKeyTypedTest.java:77)
      at ConsumeNextMnemonicKeyTypedTest.main(ConsumeNextMnemonicKeyTypedTest.java:51)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1570)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed!


      It is also reproducible with jdk 11, 17, 19, 22.
      If you run it with the test(); line commented, you can reproduce it with human input.

      A reproducer is attached(modified test to repeat Alt+F, i presses in a loop, can be run directly with java ConsumeNextMnemonicKeyTypedTest.java).

            azvegint Alexander Zvegintsev
            azvegint Alexander Zvegintsev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: