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 81894 - *Gdb-lite* Exception: java.lang.ClassCastException in ToggleBreakpointActionProvider
Summary: *Gdb-lite* Exception: java.lang.ClassCastException in ToggleBreakpointActionP...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ gordonp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-04 01:55 UTC by Nikolay Molchanov
Modified: 2007-11-02 16:19 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 Nikolay Molchanov 2006-08-04 01:55:49 UTC
This exception happens on Solaris, when I start IDE and set first breakpoint
in a project (modified Welcome project in my case). 

java.lang.ClassCastException:
org.netbeans.modules.cnd.debugger.gdb.breakpoints.BreakpointAnnotationListener
        at
org.netbeans.modules.cnd.debugger.gdb.actions.ToggleBreakpointActionProvider.getBreakpointAnnotationListener(ToggleBreakpointActionProvider.java:86)
        at
org.netbeans.modules.cnd.debugger.gdb.actions.ToggleBreakpointActionProvider.doAction(ToggleBreakpointActionProvider.java:70)
        at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:77)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)

If I press Ok, breakpoint sign does not appear on this line.
If I try to set this breakpoint again, the same exception happens.
There is no workaround. The only way is to exit IDE and start again.

Here is a part of code where exception happens (see line 86):
-------------------------------------------------------------
84:    private BreakpointAnnotationListener getBreakpointAnnotationListener() {
85:        if (breakpointAnnotationListener == null) {
86*            breakpointAnnotationListener = (BreakpointAnnotationListener) 
87:                DebuggerManager.getDebuggerManager().lookupFirst(null,
BreakpointAnnotationListener.class);
88:        }
89:        return breakpointAnnotationListener;
90:    }
-------------------------------------------------------------
Comment 1 _ gordonp 2006-08-11 00:32:35 UTC
This was fixed several days ago.
Comment 2 dnikitin 2007-11-02 16:19:12 UTC
Verified in build 200711020000