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 195351 - javax.swing.text.BadLocationException: Invalid offset=797, docLen=719
Summary: javax.swing.text.BadLocationException: Invalid offset=797, docLen=719
Status: RESOLVED DUPLICATE of bug 191620
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-11 17:49 UTC by adben
Modified: 2011-02-16 17:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 176620


Attachments
stacktrace (5.18 KB, text/plain)
2011-02-11 17:49 UTC, adben
Details

Note You need to log in before you can comment on or make changes to this bug.
Description adben 2011-02-11 17:49:10 UTC
This bug was originally marked as duplicate of bug 186474, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201102100500)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-10M3261
OS: Mac OS X

User Comments:
adben: Remainding errors in java editor, version 201102080000 fails when ";" was missing, now the editor shows the same behavior during the




Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=797, docLen=719
   at org.netbeans.modules.editor.lib2.view.EditorView.checkBounds(EditorView.java:539)
   at org.netbeans.modules.editor.lib2.view.EditorView.modelToView(EditorView.java:250)
   at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1498)
   at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1036)
   at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1011)
   at javax.swing.text.JTextComponent.modelToView(JTextComponent.java:1400)
Comment 1 adben 2011-02-11 17:49:18 UTC
Created attachment 105892 [details]
stacktrace
Comment 2 Miloslav Metelka 2011-02-16 17:23:29 UTC
Looks like the view's end offset goes beyond the document's text length (requested by DiffSideBar).
However the Build 201102100500 was unstable due to missing changes from issue 191620 so I tend to close this as dup of that issue. If you would reproduce the problem on a recent beta 2 build or a build that will contain full changes from 191620 then please reopen this issue. Excerpt from 191620:

Integrated into 'main-golden', will be available in build *201102160501* on
http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

*** This bug has been marked as a duplicate of bug 191620 ***