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

[macosx] javax.swing.JComboBox throws unexpected ClassCastException

    XMLWordPrintable

Details

    • b51
    • generic
    • os_x

    Backports

      Description

        http://java.net/jira/browse/MACOSX_PORT-555 submitted 2011/10/13 by Igor Stolyarov
        javax.swing.JComboBox throws unexpected ClassCastException
        Run attached test.
        Test output:
        openjdk version "1.7.0-ea"
        OpenJDK Runtime Environment (build 1.7.0-ea-b212)
        OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
        Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.plaf.basic.BasicComboBoxUI cannot be cast to com.apple.laf.AquaComboBoxUI
        at com.apple.laf.AquaComboBoxUI.triggerSelectionEvent(AquaComboBoxUI.java:434)
        at com.apple.laf.AquaComboBoxUI.actionPerformed(AquaComboBoxUI.java:474)
        at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1661)
        at javax.swing.JComponent.processKeyBinding(JComponent.java:2879)
        at javax.swing.JComponent.processKeyBindings(JComponent.java:2940)
        at javax.swing.JComponent.processKeyEvent(JComponent.java:2842)
        at javax.swing.JComboBox.processKeyEvent(JComboBox.java:1417)
        at java.awt.Component.processEvent(Component.java:6281)
        at java.awt.Container.processEvent(Container.java:2227)
        at java.awt.Component.dispatchEventImpl(Component.java:4860)
        at java.awt.Container.dispatchEventImpl(Container.java:2285)
        at java.awt.Component.dispatchEvent(Component.java:4686)
        at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1908)
        at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:752)
        at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1017)
        at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:889)
        at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:717)
        at java.awt.Component.dispatchEventImpl(Component.java:4730)
        at java.awt.Container.dispatchEventImpl(Container.java:2285)
        at java.awt.Window.dispatchEventImpl(Window.java:2711)
        at java.awt.Component.dispatchEvent(Component.java:4686)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
        at java.awt.EventQueue.access./Mac.bugs00(EventQueue.java:101)
        at java.awt.EventQueue.run(EventQueue.java:666)
        at java.awt.EventQueue.run(EventQueue.java:664)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.awt.EventQueue.run(EventQueue.java:680)
        at java.awt.EventQueue.run(EventQueue.java:678)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:240)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:142)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:134)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

        Attachments

          Issue Links

            Activity

              People

                rupashka Pavel Porvatov (Inactive)
                vasya Vassili Igouchkine (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: