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 bug was originally marked as duplicate of bug 203591, 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 20140219-77164cd1c6f6) VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43 OS: Linux User Comments: hmichel: Opening a file (Lombok active) Stacktrace: javax.swing.text.BadLocationException: Invalid offset=-1 < 0; docLen=23940 at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.checkOffsetNonNegative(EditorDocumentContent.java:270) at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.checkOffsetInContent(EditorDocumentContent.java:284) at org.netbeans.modules.editor.lib2.document.EditorDocumentContent.createPosition(EditorDocumentContent.java:198) at org.netbeans.editor.BaseDocument.createPosition(BaseDocument.java:1365) at org.openide.text.NbDocument.createPosition(NbDocument.java:225) at org.netbeans.modules.java.hints.infrastructure.ErrorHintsProvider$1.run(ErrorHintsProvider.java:556)
Created attachment 145466 [details] stacktrace
Created attachment 145467 [details] Sample project Open file Class1 and the error will show up.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=207856
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=207856
More info needed. I've added diagnostic (jet-main#6689a026a2fd) to the dev version, source text, and position info should be logged prior to exception and attached by exception reporter.
Integrated into 'main-silver', will be available in build *201607140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/6689a026a2fd User: Svata Dedic <sdedic@netbeans.org> Log: #242191: diagnostic added