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 219023 - IllegalArgumentException: affectedStartOffset=-536805020 < 0
Summary: IllegalArgumentException: affectedStartOffset=-536805020 < 0
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-25 22:08 UTC by sunbiz
Modified: 2012-10-05 06:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 192763


Attachments
stacktrace (1.74 KB, text/plain)
2012-09-25 22:08 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2012-09-25 22:08:45 UTC
This bug was originally marked as duplicate of bug 162226, 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.3 Beta (Build 201209232010)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.10-b01, Java(TM) SE Runtime Environment, 1.6.0_35-b10
OS: Windows NT (unknown)

User Comments:
sunbiz: Undo on the JavaScript editor after using surround with for... on a line of code




Stacktrace: 
java.lang.IllegalArgumentException: affectedStartOffset=-536805020 < 0
   at org.netbeans.modules.editor.fold.FoldHierarchyExecution.createAndFireFoldHierarchyEvent(FoldHierarchyExecution.java:550)
   at org.netbeans.modules.editor.fold.FoldHierarchyTransactionImpl.commit(FoldHierarchyTransactionImpl.java:259)
   at org.netbeans.spi.editor.fold.FoldHierarchyTransaction.commit(FoldHierarchyTransaction.java:91)
   at org.netbeans.modules.csl.editor.fold.GsfFoldManager$CommitFolds.run(GsfFoldManager.java:682)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1353)
   at org.netbeans.modules.csl.editor.fold.GsfFoldManager$CommitFolds.run(GsfFoldManager.java:610)
Comment 1 sunbiz 2012-09-25 22:08:49 UTC
Created attachment 124909 [details]
stacktrace
Comment 2 Svata Dedic 2012-10-05 06:31:19 UTC
Sorry, I could not reproduce it by invoking surround with (more variants) on a random JS code. Please try to provide a code fragment, which causes this defect; thanks.