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

test java/awt/KeyboardFocusmanager/TypeAhead/TestDialogTypeAhead.html fails with latest JDK 7

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 7
    • 7
    • client-libs
    • generic
    • generic

      The test java/awt/KeyboardFocusmanager/TypeAhead/TestDialogTypeAhead.html fails with the latest JDK 7 with the following output:

      b is shown
      b is focused
      java.awt.event.KeyEvent[KEY_PRESSED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD] on button0
      java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar=' ',keyLocation=KEY_LOCATION_UNKNOWN] on button0
      java.awt.event.KeyEvent[KEY_RELEASED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD] on button0
      B pressed
      java.lang.Error: Test error.
      at TestDialogTypeAhead$TestDialog$1.invoke(TestDialogTypeAhead.java:327)
      at $Proxy0.blockWindows(Unknown Source)
      at java.awt.Dialog.blockWindows(Dialog.java:1586)
      at java.awt.Dialog.modalShow(Dialog.java:1463)
      at java.awt.Dialog.conditionalShow(Dialog.java:929)
      at java.awt.Dialog.show(Dialog.java:1062)
      at java.awt.Component.show(Component.java:1456)
      at java.awt.Component.setVisible(Component.java:1408)
      at java.awt.Window.setVisible(Window.java:871)
      at java.awt.Dialog.setVisible(Dialog.java:1012)
      at TestDialogTypeAhead$4.actionPerformed(TestDialogTypeAhead.java:138)
      at java.awt.Button.processActionEvent(Button.java:410)
      at java.awt.Button.processEvent(Button.java:378)
      at java.awt.Component.dispatchEventImpl(Component.java:4461)
      at java.awt.Component.dispatchEvent(Component.java:4287)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:605)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:276)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:201)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:191)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:186)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:139)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:623)
      at TestDialogTypeAhead$TestDialog$1.invoke(TestDialogTypeAhead.java:323)
      ... 21 more
      Caused by: java.lang.ClassCastException: $Proxy0 cannot be cast to sun.awt.X11.XDialogPeer
      at sun.awt.X11.XWindowPeer.setModalBlocked(XWindowPeer.java:1379)
      at sun.awt.X11.XDialogPeer.blockWindows(XDialogPeer.java:129)
      ... 26 more

      Note that the test passes when run with JDK 6.

            ant Anton Tarasov (Inactive)
            anthony Anthony Petrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: