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 210121, 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 201309191137) VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15 OS: Mac OS X User Comments: GUEST: editing comments Stacktrace: javax.swing.text.BadLocationException: Invalid offset=-536828495 not within <0, 34038> at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1350) at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1345) at org.netbeans.editor.Utilities.getLineOffset(Utilities.java:561) at org.netbeans.modules.editor.hints.AnnotationHolder$11.run(AnnotationHolder.java:1457) at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391) at org.netbeans.modules.editor.hints.AnnotationHolder.resolveWarnings(AnnotationHolder.java:1447)
Created attachment 140400 [details] stacktrace
There are exceptions thrown from showtodos java.lang.Exception at org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:397) at org.netbeans.lib.lexer.TokenHierarchyOperation.isActive(TokenHierarchyOperation.java:357) at org.netbeans.api.lexer.TokenHierarchy.isActive(TokenHierarchy.java:356) at org.netbeans.modules.showtodos.TodoSourceParsing.parse(TodoSourceParsing.java:71) at org.netbeans.modules.showtodos.TodoSourceParsing.parseForAnnotatable(TodoSourceParsing.java:135) at org.netbeans.modules.showtodos.TodoAnnotationProvider.parse(TodoAnnotationProvider.java:123) at org.netbeans.modules.showtodos.TodoAnnotationProvider.annotate(TodoAnnotationProvider.java:108) at org.netbeans.modules.showtodos.TodoAnnotationProvider.annotate(TodoAnnotationProvider.java:93) at org.openide.text.CloneableEditorSupport.ensureAnnotationsLoaded(CloneableEditorSupport.java:392) at org.openide.text.CloneableEditorInitializer.initAnnotations(CloneableEditorInitializer.java:634) at org.openide.text.CloneableEditorInitializer.run(CloneableEditorInitializer.java:351) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042) You can see in messages.log that annotation was probably created from showtodos so I am sending this to their evaluation.
Created attachment 143411 [details] stacktrace Occurred after using contrib/licensechanger to change headers
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=204093