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 237576 - AssertionError: startOffset=1425 > endOffset=1424
Summary: AssertionError: startOffset=1425 > endOffset=1424
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 16:51 UTC by Exceptions Reporter
Modified: 2013-11-08 03:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 204857


Attachments
stacktrace (1.39 KB, text/plain)
2013-10-23 16:51 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-10-23 16:51:21 UTC
This bug was originally marked as duplicate of bug 229606, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.4 Beta (Build 201307092200)
VM: Java HotSpot(TM) Client VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
GUEST: I was simply doing some basic copy and paste work.




Stacktrace: 
java.lang.AssertionError: startOffset=1425 > endOffset=1424
   at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.commit(FoldHierarchyTransactionImpl.java:244)
   at org.netbeans.modules.editor.fold.FoldOperationImpl$Refresher.run(FoldOperationImpl.java:676)
   at org.netbeans.modules.editor.fold.FoldOperationImpl.update(FoldOperationImpl.java:487)
   at org.netbeans.spi.editor.fold.FoldOperation.update(FoldOperation.java:406)
   at org.netbeans.modules.csl.editor.fold.GsfFoldManager$CommitFolds.run(GsfFoldManager.java:694)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1383)
Comment 1 Exceptions Reporter 2013-10-23 16:51:23 UTC
Created attachment 141486 [details]
stacktrace
Comment 2 Svata Dedic 2013-11-01 09:13:33 UTC
What file type were you editing ?
Comment 3 Svata Dedic 2013-11-05 12:42:39 UTC
The assertion is caused by a fold that is retained in the hierarchy despite the start & end offsets are not valid. Will be solved as a part of issue #237964, but the cause is slightly different.
Comment 4 Svata Dedic 2013-11-05 12:43:55 UTC
Fixed in http://hg.netbeans.org/jet-main/rev/91d00c751468
Comment 5 Quality Engineering 2013-11-08 03:53:26 UTC
Integrated into 'main-silver', will be available in build *201311080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/91d00c751468
User: Svata Dedic <sdedic@netbeans.org>
Log: #237964, #237576: invalid fold requests ignored