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 44526 - setting JPDABreakpoint.SUSPEND_NONE on a classbreakpoint doesn't work as expected
Summary: setting JPDABreakpoint.SUSPEND_NONE on a classbreakpoint doesn't work as expe...
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-08 14:19 UTC by _ kherink
Modified: 2006-03-24 09:55 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 _ kherink 2004-06-08 14:19:32 UTC
when using

classBreakpoint.setSuspend(JPDABreakpoint.SUSPEND_NONE);

the expected functionality is that the event
thread will be infact suspended until code in
JPDABreakpointListener registered on the
classBreakpoint is executed

currently the VM continues running, so the code in 
JPDABreakpointListener.breakpointReached() method
executes too late

a simple example is setting an initial line
breakoint as soon as the class is loaded, what
happens is that the breakpoint is set but the VM
has already run that code so it never stops on the
linebreakpoint
Comment 1 Jan Jancura 2004-06-09 10:06:14 UTC
I will look at it asap.
Comment 2 Jan Jancura 2004-06-23 16:01:57 UTC
fixed in the main trunk


Checking in
src/org/netbeans/modules/debugger/jpda/actions/StartActionProvider.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/actions/StartActionProvider.java,v
 <--  StartActionProvider.java
new revision: 1.4; previous revision: 1.3
done
Processing log script arguments...
More commits to come...
Checking in
src/org/netbeans/modules/debugger/jpda/breakpoints/BreakpointImpl.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/breakpoints/BreakpointImpl.java,v
 <--  BreakpointImpl.java
new revision: 1.6; previous revision: 1.5
done
Checking in
src/org/netbeans/modules/debugger/jpda/breakpoints/ClassBreakpointImpl.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/breakpoints/ClassBreakpointImpl.java,v
 <--  ClassBreakpointImpl.java
new revision: 1.4; previous revision: 1.3
done
Checking in
src/org/netbeans/modules/debugger/jpda/breakpoints/FieldBreakpointImpl.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/breakpoints/FieldBreakpointImpl.java,v
 <--  FieldBreakpointImpl.java
new revision: 1.4; previous revision: 1.3
done
Checking in
src/org/netbeans/modules/debugger/jpda/breakpoints/LineBreakpointImpl.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/breakpoints/LineBreakpointImpl.java,v
 <--  LineBreakpointImpl.java
new revision: 1.8; previous revision: 1.7
done
Checking in
src/org/netbeans/modules/debugger/jpda/breakpoints/MethodBreakpointImpl.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/breakpoints/MethodBreakpointImpl.java,v
 <--  MethodBreakpointImpl.java
new revision: 1.5; previous revision: 1.4
done
Checking in
src/org/netbeans/modules/debugger/jpda/breakpoints/ThreadBreakpointImpl.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/breakpoints/ThreadBreakpointImpl.java,v
 <--  ThreadBreakpointImpl.java
new revision: 1.3; previous revision: 1.2
done
Processing log script arguments...
More commits to come...
Checking in src/org/netbeans/modules/debugger/jpda/util/Operator.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/util/Operator.java,v
 <--  Operator.java
new revision: 1.30; previous revision: 1.29
done
Comment 3 Max Sauer 2005-07-11 13:18:25 UTC
Karel, please verify this issue, thanks.
Comment 4 _ kherink 2005-07-13 16:26:44 UTC
works for me