This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 204600 - ClassCastException: javax.swing.KeyStroke cannot be cast to java.lang.Comparable
Summary: ClassCastException: javax.swing.KeyStroke cannot be cast to java.lang.Comparable
Status: RESOLVED WONTFIX
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-02 21:22 UTC by Exceptions Reporter
Modified: 2012-07-31 07:05 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 180355


Attachments
stacktrace (3.25 KB, text/plain)
2011-11-02 21:22 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2011-11-02 21:22:26 UTC
Build: NetBeans IDE 7.1 Beta (Build 201109252201)
VM: Java HotSpot(TM) Client VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08
OS: Windows 7

User Comments:
GUEST: i was restart netbeans

bolsover: Possibly a Jindent problem rather than NB - but reporting here anyway since exception is thrown in NB
NB 7.1 Beta offers to install plugins from prior version of NB, in my case 7.0.1.
Selected JIndent plugin and installed.
Exception is thrown when opening Options dialog.




Stacktrace: 
java.lang.ClassCastException: javax.swing.KeyStroke cannot be cast to java.lang.Comparable
   at java.util.TreeMap.compare(TreeMap.java:1188)
   at java.util.TreeMap.put(TreeMap.java:531)
   at java.util.TreeSet.add(TreeSet.java:255)
   at jindent.util.swing.bk.a(bk.java:0)
   at jindent.util.swing.bk.installUI(bk.java:0)
   at javax.swing.JComponent.setUI(JComponent.java:664)
Comment 1 Exceptions Reporter 2011-11-02 21:22:29 UTC
Created attachment 112756 [details]
stacktrace
Comment 2 Marian Mirilovic 2011-11-03 15:26:17 UTC
jindent issue ...
Comment 3 Marian Mirilovic 2011-11-23 12:21:51 UTC
Nothing can be done on NB side, please report against http://www.jindent.com/, Thanks in advance.
Comment 4 op80005 2012-07-31 07:05:58 UTC
Comment on attachment 112756 [details]
stacktrace

>java.lang.ClassCastException: javax.swing.KeyStroke cannot be cast to java.lang.Comparable
>   at java.util.TreeMap.compare(TreeMap.java:1188)
>   at java.util.TreeMap.put(TreeMap.java:531)
>   at java.util.TreeSet.add(TreeSet.java:255)
>   at jindent.util.swing.bk.a(bk.java:0)
>   at jindent.util.swing.bk.installUI(bk.java:0)
>   at javax.swing.JComponent.setUI(JComponent.java:664)
>   at javax.swing.JSplitPane.setUI(JSplitPane.java:374)
>   at jindent.util.swing.FlippableSplitPane.<init>(FlippableSplitPane.java:0)
>   at jindent.customizer.CustomizerPanel.<init>(CustomizerPanel.java:0)
>   at jindent.plugin.netbeans.options.JindentOptionPanelController.getComponent(JindentOptionPanelController.java:84)
>   at org.netbeans.modules.options.CategoryModel$Category.getComponent(CategoryModel.java:420)
>   at org.netbeans.modules.options.OptionsPanel.setCurrentCategory(OptionsPanel.java:181)
>   at org.netbeans.modules.options.OptionsPanel.access$100(OptionsPanel.java:98)
>   at org.netbeans.modules.options.OptionsPanel$CategoryButton.mouseReleased(OptionsPanel.java:528)
>   at java.awt.Component.processMouseEvent(Component.java:6504)
>   at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
>   at java.awt.Component.processEvent(Component.java:6269)
>   at java.awt.Container.processEvent(Container.java:2229)
>   at java.awt.Component.dispatchEventImpl(Component.java:4860)
>   at java.awt.Container.dispatchEventImpl(Container.java:2287)
>   at java.awt.Component.dispatchEvent(Component.java:4686)
>   at java.awt.LightweightDispatcher.retargetMouseEvent(LightweightDispatcher.java:4832)
>   at java.awt.LightweightDispatcher.processMouseEvent(LightweightDispatcher.java:4492)
>   at java.awt.LightweightDispatcher.dispatchEvent(LightweightDispatcher.java:4422)
>   at java.awt.Container.dispatchEventImpl(Container.java:2273)
>   at java.awt.Window.dispatchEventImpl(Window.java:2713)
>   at java.awt.Component.dispatchEvent(Component.java:4686)
>   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
>   at java.awt.EventQueue.access$000(EventQueue.java:101)
>   at java.awt.EventQueue$3.run(EventQueue.java:666)
>   at java.awt.EventQueue$3.run(EventQueue.java:664)
>   at java.security.AccessController.doPrivileged(AccessController.java:0)
>   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>   at java.awt.EventQueue$4.run(EventQueue.java:680)
>   at java.awt.EventQueue$4.run(EventQueue.java:678)
>   at java.security.AccessController.doPrivileged(AccessController.java:0)
>   at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
>   at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:153)
>   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
>   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
>   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
>   at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)