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.
Summary: | [65cat] AssertionError: Start offset must be before the end offset. startOffset = 542, endOffset = -1 | ||
---|---|---|---|
Product: | web | Reporter: | goeh <goeh> |
Component: | HTML Editor | Assignee: | Marek Fukala <mfukala> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | adam_myatt, aroika, giiulio, goeh, ki4ngel, menic, microugly, mmirilovic, sandange, sunbiz |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | Windows XP | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=121713 | ||
Issue Type: | DEFECT | Exception Reporter: | 121713 |
Attachments: |
Patch for HTMLBracesMatching
stacktrace stacktrace |
Description
goeh
2008-10-05 13:22:20 UTC
In HTMLBracesMatching.java, attaching patch... Created attachment 71210 [details]
Patch for HTMLBracesMatching
I also improved logging in MasterMatcher. Local changeset: e26e18b7099e vito, thanks for the patch, it looks great! :-) Integrated into 'main-golden', will be available in build *200810080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/e26e18b7099e User: Vita Stejskal <vstejskal@netbeans.org> Log: #149174 - better logging to diagnose the problem Build: NetBeans IDE Dev (Build 200810011401) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32 OS: Windows Vista, 6.0, x86 User Comments: Steps to reproduce: 1.) Create Web Application project 2.) in the index.jsp that opens, beside the <head>, type<> 3.) then type the slash key in between. i.e it becomes </> and the exception is thrown Stacktrace: java.lang.AssertionError: Start offset must be before the end offset. startOffset = 280, endOffset = -1 at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addHighlightImpl(OffsetsBag.java:491) at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addHighlight(OffsetsBag.java:161) at org.netbeans.modules.editor.bracesmatching.MasterMatcher.placeHighlights(MasterMatcher.java:289) at org.netbeans.modules.editor.bracesmatching.MasterMatcher.highlightAreas(MasterMatcher.java:269) at org.netbeans.modules.editor.bracesmatching.MasterMatcher.access$400(MasterMatcher.java:63) at org.netbeans.modules.editor.bracesmatching.MasterMatcher$Result$1.run(MasterMatcher.java:583) Created attachment 71488 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200810031942) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13 OS: Windows XP, 5.1, x86 User Comments: working on JSP file in editor changing uppercase <TD> tags to lowercase <td> Stacktrace: java.lang.AssertionError: Start offset must be before the end offset. startOffset = 15210, endOffset = -1 at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addHighlightImpl(OffsetsBag.java:491) at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addHighlight(OffsetsBag.java:161) at org.netbeans.modules.editor.bracesmatching.MasterMatcher.placeHighlights(MasterMatcher.java:289) at org.netbeans.modules.editor.bracesmatching.MasterMatcher.highlightAreas(MasterMatcher.java:269) at org.netbeans.modules.editor.bracesmatching.MasterMatcher.access$400(MasterMatcher.java:63) at org.netbeans.modules.editor.bracesmatching.MasterMatcher$Result$1.run(MasterMatcher.java:583) Created attachment 71672 [details]
stacktrace
future ? ... this issue has 31 duplicates so far ... the last one reported against build 082810 fixed changeset: 107829:170397e05f4a tag: tip user: Marek Fukala <mfukala@netbeans.org> date: Tue Nov 18 09:46:34 2008 +0100 summary: #121713 - [65cat] AssertionError: Start offset must be before the end offset. startOffset = 542, endOffset = -1 |