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 10431 - Right-clicking on CLASS node throws exception
Summary: Right-clicking on CLASS node throws exception
Status: CLOSED DUPLICATE of bug 10403
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC OS/2
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-17 00:00 UTC by _ gtzabari
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2001-03-17 00:00:05 UTC
I right click on the CLASS node of an object listed in EXPLORER and get:

Fri Mar 16 18:59:42 EST 2001java.lang.ClassCastException: 
org.openide.nodes.CookieSet
java.lang.ClassCastException: org.openide.nodes.CookieSet
        at 
org.netbeans.modules.java.JavaParserGlue.createOpenCookie(JavaParserGlue.
java:213)
        at 
org.netbeans.modules.java.JavaParserGlue.findCookie(JavaParserGlue.java:1
25)
        at 
org.netbeans.modules.java.model.DefaultLangModel.findElementCookie(Defaul
tLangModel.java:442)
        at 
org.netbeans.modules.java.model.ElementImpl.getCookie(ElementImpl.java:50
2)
        at org.openide.src.Element.getCookie(Element.java:115)
        at 
org.openide.src.nodes.ElementNode.getCookie(ElementNode.java:250)
        at org.openide.nodes.FilterNode.getCookie(FilterNode.java:455)
        at 
org.openide.util.actions.CookieAction.resolveSupported(CookieAction.java:
150)
        at 
org.openide.util.actions.CookieAction.doEnable(CookieAction.java:124)
        at 
org.openide.util.actions.CookieAction.enable(CookieAction.java:119)
        at 
org.openide.util.actions.NodeAction$NodesL.checkEnabled(NodeAction.java:2
48)
        at 
org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:64)
        at 
org.openide.awt.Actions$MenuBridge.updateState(Actions.java(Compiled 
Code))
        at org.openide.awt.Actions.connect(Actions.java:73)
        at org.openide.awt.Actions$MenuItem.<init>(Actions.java:638)
        at 
org.openide.util.actions.CallableSystemAction.getPopupPresenter(CallableS
ystemAction.java:43)
        at org.openide.nodes.NodeOp.findContextMenuImpl(NodeOp.java:145)
        at org.openide.nodes.Node.getContextMenu(Node.java:414)
        at org.openide.nodes.NodeOp.findContextMenu(NodeOp.java:79)
        at 
org.openide.explorer.view.TreeView.createPopup(TreeView.java:708)
        at 
org.openide.explorer.view.TreeView$PopupAdapter.showPopup(TreeView.java:7
02)
        at 
org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased(MouseUtils.jav
a:150)
        at 
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:237)
[catch] at 
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:236)
        at java.awt.Component.processMouseEvent(Component.java:3771)
        at java.awt.Component.processEvent(Component.java(Compiled Code))
        at java.awt.Container.processEvent(Container.java(Compiled Code))
        at java.awt.Component.dispatchEventImpl(Component.java(Compiled 
Code))
        at java.awt.Container.dispatchEventImpl(Container.java(Compiled 
Code))
        at java.awt.Component.dispatchEvent(Component.java(Compiled 
Code))
        at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2465)
        at 
java.awt.LightweightDispatcher.processMouseEvent(Container.java(Compiled 
Code))
        at 
java.awt.LightweightDispatcher.dispatchEvent(Container.java:2139)
        at java.awt.Window.dispatchEventImpl(Window.java(Compiled Code))
        at java.awt.Window.dispatchEventImpl(Window.java(Compiled Code))
        at java.awt.Component.dispatchEvent(Component.java(Compiled 
Code))
        at java.awt.EventQueue.dispatchEvent(EventQueue.java(Compiled 
Code))
        at 
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java(Compil
ed Code))
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java(Compiled 
Code))
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Comment 1 Jaroslav Tulach 2001-03-21 13:05:26 UTC
Look Gili, thanx for the bug report, but if right clicking on all nodes would be
broken (are most of them), then it could be bug of core. Otherwise it is a bug
in some module. 

And if the exception shows on CLASS node, then very likely it could be bug in
java module. Reassigning there.
Comment 2 Svata Dedic 2001-03-21 13:34:49 UTC

*** This issue has been marked as a duplicate of 10403 ***
Comment 3 Quality Engineering 2003-07-01 13:12:08 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-07-01 13:16:30 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.