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 42754 - Cannot add breakpoint to edited file
Summary: Cannot add breakpoint to edited file
Status: CLOSED DUPLICATE of bug 42270
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
: 42636 (view as bug list)
Depends on: 42755
Blocks:
  Show dependency tree
 
Reported: 2004-05-04 09:14 UTC by Martin Grebac
Modified: 2006-03-24 10:08 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 Martin Grebac 2004-05-04 09:14:28 UTC
Create class, add several new line to it, and try
to add breakpoint to added lines. It cannot be
added and exception is thrown, or it is added to
incorrect line. This is because there is a call to
getOriginal somewhere in the context.

java.lang.IndexOutOfBoundsException: Invalid line
index=86 >= lineCount=70
org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:54)
org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:642)
org.netbeans.editor.BaseDocument.render(BaseDocument.java:883)
org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:620)
org.openide.text.NbDocument.findLineOffset(NbDocument.java:143)
org.openide.text.DocumentLine$Set.getOriginal(DocumentLine.java:881)
org.netbeans.modules.debugger.projects.ContextProviderImpl.getCurrentLineNumber(ContextProviderImpl.java:127)
org.netbeans.modules.debugger.jpda.ui.Context.getCurrentLineNumber(Context.java:106)
org.netbeans.modules.debugger.jpda.ui.actions.ToggleBreakpointAction.performAction(ToggleBreakpointAction.java:87)
Comment 1 Martin Grebac 2004-05-04 16:54:35 UTC
*** Issue 42636 has been marked as a duplicate of this issue. ***
Comment 2 Jan Jancura 2004-05-10 17:17:34 UTC

*** This issue has been marked as a duplicate of 42270 ***
Comment 3 Martin Grebac 2004-07-21 16:41:38 UTC
verified duplicate