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 244735 - AssertionError: Start position must be before the end position.
Summary: AssertionError: Start position must be before the end position.
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on: 244769
Blocks:
  Show dependency tree
 
Reported: 2014-05-26 13:06 UTC by Alexander Simon
Modified: 2014-06-02 14:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 209937


Attachments
stacktrace (1.64 KB, text/plain)
2014-05-26 13:06 UTC, Alexander Simon
Details
stacktrace (1.64 KB, text/plain)
2014-05-27 10:27 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2014-05-26 13:06:41 UTC
Build: NetBeans IDE Dev (Build 20140526-92fa3bb7826f)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: SunOS

User Comments:
alexvsimon: navigate in macro expansion view




Stacktrace: 
java.lang.AssertionError: Start position must be before the end position.
   at org.netbeans.spi.editor.highlighting.support.PositionsBag.addHighlightImpl(PositionsBag.java:482)
   at org.netbeans.spi.editor.highlighting.support.PositionsBag.addHighlight(PositionsBag.java:139)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.addHighlightsToBag(SemanticHighlighter.java:273)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.addHighlightsToBag(SemanticHighlighter.java:264)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.updateImpl(SemanticHighlighter.java:234)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.access$500(SemanticHighlighter.java:88)
Comment 1 Alexander Simon 2014-05-26 13:06:42 UTC
Created attachment 147454 [details]
stacktrace
Comment 2 Alexander Simon 2014-05-27 10:27:35 UTC
Created attachment 147468 [details]
stacktrace

show macro expansion view of synch.h, function mutex_recursion
Comment 3 Alexander Simon 2014-05-28 16:06:16 UTC
This is one of IDE misbehaviors related with activated macro expansion view.
Full list of problems:
- some semantic highlighters cannot work with expanded document
- some semantic highlighters produce blocks in term of main document
- sometimes reference resolver uses transformation table form opposite document
- parsing API call unneeded task such as assign variable and error highlighters
- also see problem in the bug #244769
Comment 4 Alexander Simon 2014-05-28 16:13:37 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/cbc97bdc3a39