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.
Functional class and thread breakpoints tests fail on: It is reproducible manually: 1. create a class breakpoint 2. start debugging java.lang.IndexOutOfBoundsException: from = 0 is too high, frame count = 0 at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.getCallStack(JPDAThreadImpl.java:316) at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.getCallStack(JPDAThreadImpl.java:281) at org.netbeans.modules.debugger.jpda.ui.CurrentThreadAnnotationListener.annotate(CurrentThreadAnnotationListener.java:129) at org.netbeans.modules.debugger.jpda.ui.CurrentThreadAnnotationListener.propertyChange(CurrentThreadAnnotationListener.java:72) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333) at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.firePropertyChange(JPDADebuggerImpl.java:1276) at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.setStoppedState(JPDADebuggerImpl.java:896) at org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.perform(BreakpointImpl.java:329) at org.netbeans.modules.debugger.jpda.breakpoints.ThreadBreakpointImpl.exec(ThreadBreakpointImpl.java:104) at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:235) at java.lang.Thread.run(Thread.java:595)
It seems debugger sometimes does not stop on thread and class brekpoints.
Thanks to my detailed annotation of the IndexOutOfBoundsException, I've found that the problem is when the call stack does not contain any frames.
The fix was trivial: /shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java,v <-- JPDAThreadImpl.java new revision: 1.34; previous revision: 1.33
verified