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.
Summary: | evaluate code text grows after single step | ||
---|---|---|---|
Product: | debugger | Reporter: | err <err> |
Component: | Java | Assignee: | Martin Entlicher <mentlicher> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | mmirilovic, sustaining |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
err
2010-01-10 21:59:10 UTC
I've reproduced this when I changed the current stack frame. When this happens, also en exception appears in messages.log file: INFO: Invalid line index=-2 < 0 java.lang.IndexOutOfBoundsException: Invalid line index=-2 < 0 at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:108) at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:696) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1371) at org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:671) at org.openide.text.NbDocument.findLineOffset(NbDocument.java:176) at org.netbeans.modules.debugger.jpda.ui.WatchPanel.setupContext(WatchPanel.java:223) at org.netbeans.modules.debugger.jpda.ui.WatchPanel.setupContext(WatchPanel.java:137) at org.netbeans.modules.debugger.jpda.ui.CodeEvaluator.setupContextLazily(CodeEvaluator.java:254) at org.netbeans.modules.debugger.jpda.ui.CodeEvaluator.access$400(CodeEvaluator.java:102) [catch] at org.netbeans.modules.debugger.jpda.ui.CodeEvaluator$2.run(CodeEvaluator.java:233) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084) This seems to be related. Both problems are fixed in changeset: 156730:2ccc50c3ed3c and changeset: 156731:1d2820bb2138. http://hg.netbeans.org/main/rev/2ccc50c3ed3c http://hg.netbeans.org/main/rev/1d2820bb2138 Can this be a candidate for 6.8.1 patch? Integrated into 'main-golden', will be available in build *201001131418* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/2ccc50c3ed3c User: mentlicher@netbeans.org Log: #179360 - Prevent from IndexOutOfBoundsException. O.K. I've made this a candidate for 6.8 patch. err, can you please verify that the behavior is correct in dev build #201001131418 or newer? Thanks. With fix, can not reproduce. Thanks. BTW, I never did see the exception, must be caught? The fix has been ported into the release68_fixes repository. http://hg.netbeans.org/release68_fixes/rev/fe9b2832576f |