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 112862

Summary: Assertion error when pressing alt-enter
Product: java Reporter: _ tboudreau <tboudreau>
Component: HintsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ tboudreau 2007-08-15 10:27:56 UTC
I repeatedly pressed alt-enter in frustration while my laptop was sounding like a jet on the runway and the add import hint would not come up because 
some background thread was going insane.  On the third try, the following exception was thrown:

java.lang.AssertionError: Start offset must be before the end offset. startOffset = 675, endOffset = 674
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addHighlightImpl(OffsetsBag.java:452)
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addHighlight(OffsetsBag.java:137)
        at org.netbeans.modules.editor.hints.AnnotationHolder.computeHighlights(AnnotationHolder.java:694)
        at org.netbeans.modules.editor.hints.AnnotationHolder.updateHighlightsOnLine(AnnotationHolder.java:642)
        at org.netbeans.modules.editor.hints.AnnotationHolder.updateHighlightsOnLine(AnnotationHolder.java:629)
        at org.netbeans.modules.editor.hints.AnnotationHolder.setErrorDescriptionsImpl(AnnotationHolder.java:808)
        at org.netbeans.modules.editor.hints.AnnotationHolder.access$1100(AnnotationHolder.java:83)
        at org.netbeans.modules.editor.hints.AnnotationHolder$4.run(AnnotationHolder.java:721)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1162)
        at org.netbeans.modules.editor.hints.AnnotationHolder.setErrorDescriptions(AnnotationHolder.java:718)
        at org.netbeans.modules.editor.hints.HintsControllerImpl.setErrorsImpl(HintsControllerImpl.java:103)
        at org.netbeans.modules.editor.hints.HintsControllerImpl.setErrors(HintsControllerImpl.java:85)
        at org.netbeans.spi.editor.hints.HintsController$1.run(HintsController.java:51)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 1 Jan Becicka 2007-08-20 14:20:21 UTC

*** This issue has been marked as a duplicate of 112566 ***