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

[TEST_BUG] java/awt/Toolkit/LockingKeyStateTest: State of Caps Lock is not true

XMLWordPrintable

    • Cause Known
    • x86_64
    • windows_10

      ADDITIONAL SYSTEM INFORMATION :
      Microsoft Windows [Version 10.0.17134.165]

      JDK under test: C:\\Program Files\\Java\\jdk-10.0.2
      java version "10.0.2" 2018-07-17
      Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
      Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      The test java/awt/Toolkit/LockingKeyStateTest/LockingKeyStateTest.java fails on Windows with the message "State of Caps Lock is not true"
      The issue was not observed on MacOSX, Linux
      Please not the failure is not reproduced in standalone mode. The test fails when it is started in a group e.g. jawa/awt

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      >java -jar jtreg\lib\jtreg.jar -ignore:quiet -v -a -xml -testjdk:"C:\Program Files\Java\jdk-10.0.2" -javaoptions:"-Djava.awt.headless=false" test\java\awt

      ACTUAL -
      #section:main
      ----------messages:(5/205)----------
      command: main LockingKeyStateTest
      reason: User specified action: run main LockingKeyStateTest
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 3.772
      ----------configuration:(3/43)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(4/219)----------
       State get/set of Caps Lock is supported? true, true
       State get/set of Num Lock is supported? true, true
       State get/set of Scroll Lock is supported? true, true
       State get/set of Kana Lock is supported? false, false
      ----------System.err:(33/2403)----------
      java.lang.reflect.InvocationTargetException
      at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367)
      at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342)
      at LockingKeyStateTest.doTest(LockingKeyStateTest.java:113)
      at LockingKeyStateTest.main(LockingKeyStateTest.java:125)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.lang.RuntimeException: State of Caps Lock is not true
      at LockingKeyStateTest.checkAll(LockingKeyStateTest.java:72)
      at LockingKeyStateTest.checkAllTrue(LockingKeyStateTest.java:66)
      at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
      at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
      at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
      at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
      at java.base/java.security.AccessController.doPrivileged(Native Method)
      at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
      at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
      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)

      JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.reflect.InvocationTargetException

      ---------- BEGIN SOURCE ----------
      http://hg.openjdk.java.net/jdk10/jdk10/jdk/file/777356696811/test/java/awt/Toolkit/LockingKeyStateTest/LockingKeyStateTest.java
      ---------- END SOURCE ----------

      FREQUENCY : always


            rkannathpari Renjith Kannath Pariyangad
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: