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 210090 - AssertionError: Negative length. addFold1 ENTER, rootFold = [root-fold] E <0,2380>, hash=0x937613e, [0, 2380] {0, 2380} addFold2 nextIndex:1 index:1 addFold5 nextIndex += prevFold.getFoldCount() ne
Summary: AssertionError: Negative length. addFold1 ENTER, rootFold = [root-fold] E <0...
Status: RESOLVED DUPLICATE of bug 206863
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-26 11:02 UTC by FrantaM
Modified: 2012-03-27 06:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 186277


Attachments
stacktrace (2.05 KB, text/plain)
2012-03-26 11:02 UTC, FrantaM
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FrantaM 2012-03-26 11:02:34 UTC
This bug was originally marked as duplicate of bug 206293, 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 201203180400)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b04
OS: Linux

User Comments:
brettryan: Just editing a JSP, commenting using <%-- actually.

brettryan: While editing JSP, added comment.

GUEST: I have 3 files open. One java servlet, one java file, one JSP file. At the exact moment error popped up I was typing in my JSP file:

Before error i had the following line of html code:
<div id="frm">

I began editing this line with the attempt to add <%= %> block. So this is what i had at moment of error.
<div id="frm" <%=>

The actual keystrokes i added were:
<%=

And error occured after typing equals sign. So I had the closing > prior to typing <%=

I love netbeans!




Stacktrace: 
java.lang.AssertionError: Negative length.
 addFold1 ENTER, rootFold = [root-fold] E <0,2380>, hash=0x937613e, [0, 2380] {0, 2380}
 addFold2 nextIndex:1 index:1
 addFold5 nextIndex += prevFold.getFoldCount() nextIndex:6 index:1
 addFold6 nextIndex-- nextIndex:5 index:6
 addFold8 INVOKE ApiPackageAccessor.get().foldExtractToChildren index:6 nextIndex:5 diff:-1 parentFold.getFoldCount():5
   at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.addFold(FoldHierarchyTransactionImpl.java:810)
   at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.addFold(FoldHierarchyTransactionImpl.java:534)
   at org.netbeans.modules.editor.fold.FoldHierarchyExecution.add(FoldHierarchyExecution.java:357)
   at org.netbeans.modules.editor.fold.FoldOperationImpl.addToHierarchy(FoldOperationImpl.java:185)
   at org.netbeans.spi.editor.fold.FoldOperation.addToHierarchy(FoldOperation.java:140)
   at org.netbeans.modules.web.core.syntax.folding.JspFoldManager$3.run(JspFoldManager.java:431)
Comment 1 FrantaM 2012-03-26 11:02:36 UTC
Created attachment 117240 [details]
stacktrace
Comment 2 Svata Dedic 2012-03-27 06:37:44 UTC

*** This bug has been marked as a duplicate of bug 206863 ***