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.
This issue was reported manually by vv159170. It already has 2 duplicates Build: NetBeans IDE Dev (Build 20130125-af25d6f79fe6) VM: Java HotSpot(TM) 64-Bit Server VM, 20.10-b01, Java(TM) SE Runtime Environment, 1.6.0_35-b10 OS: Linux User Comments: vv159170: revert file Stacktrace: java.lang.IndexOutOfBoundsException: Invalid line index=1 >= lineCount=1 at org.netbeans.modules.editor.lib2.document.LineRootElement.getElement(LineRootElement.java:84) at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.updateLineEndOffset(HighlightsViewFactory.java:344) at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.createView(HighlightsViewFactory.java:218) at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:898) at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:735) at org.netbeans.modules.editor.lib2.view.ViewBuilder.createReplaceRepaintViews(ViewBuilder.java:689)
Created attachment 130764 [details] stacktrace
Mila, this exception is rather dangerous, because vcs revert has happened, but displayed file content was not refreshed => have to close and reopen file, although file status is unmodified
You're right, Vladimir, raising to P1. After many tries and writing several tests I've finally found a way (thanks to Jirka Prox) to reproduce the problem consistently.
Created attachment 130907 [details] stacktrace
http://hg.netbeans.org/jet-main/rev/f77dd1c30480
Mila, if you plan to fix it in 7.3, please integrate the fix into release73 today. Thanks in advance. Otherwise we will fix it in a patch 1
Yes, I was just waiting for cont.build results, it looks ok. Integrated into release73: f77dd1c30480 transplanted to e6f879be3abf
Removed extra variables from ViewBuilder.toString() introduced by a changeset not present in release73: http://hg.netbeans.org/releases/rev/af270be4ed2f
Integrated into 'releases', will be available in build *201302032200* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/e6f879be3abf User: Miloslav Metelka <mmetelka@netbeans.org> Log: #225451 - IndexOutOfBoundsException: Invalid line index=1 >= lineCount=1. (transplanted from f77dd1c30480c7a230dc50ee603489ad2122b137)
Integrated into 'main-golden', will be available in build *201302040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f77dd1c30480 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #225451 - IndexOutOfBoundsException: Invalid line index=1 >= lineCount=1.
*** Bug 225690 has been marked as a duplicate of this bug. ***
*** Bug 225362 has been marked as a duplicate of this bug. ***
verified
*** Bug 225363 has been marked as a duplicate of this bug. ***
*** Bug 225821 has been marked as a duplicate of this bug. ***
*** Bug 225327 has been marked as a duplicate of this bug. ***
*** Bug 225841 has been marked as a duplicate of this bug. ***
*** Bug 217103 has been marked as a duplicate of this bug. ***