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 206280 - IllegalArgumentException: len=-8 < 0
Summary: IllegalArgumentException: len=-8 < 0
Status: RESOLVED DUPLICATE of bug 207264
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-12 16:04 UTC by rudyment
Modified: 2012-09-11 13:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 183663


Attachments
stacktrace (2.11 KB, text/plain)
2011-12-12 16:04 UTC, rudyment
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rudyment 2011-12-12 16:04:04 UTC
This bug was originally marked as duplicate of bug 205148, 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.1 RC2 (Build 201111302200)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08
OS: Windows 7

User Comments:
rudyment: The exception occurred after a have seen the refactoring preview and wanted to accept them.

rudyment: The exception occurred during refactoring -- changing a name of an attribute.




Stacktrace: 
java.lang.IllegalArgumentException: len=-8 < 0
   at org.netbeans.editor.BaseDocument.handleRemove(BaseDocument.java:903)
   at org.netbeans.editor.BaseDocument$FilterBypassImpl.remove(BaseDocument.java:2343)
   at javax.swing.text.DocumentFilter.remove(DocumentFilter.java:79)
   at org.openide.text.CloneableEditorSupport$DocFilter.remove(CloneableEditorSupport.java:3001)
   at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:889)
   at org.netbeans.api.java.source.ModificationResult.processDocumentLocked(ModificationResult.java:406)
Comment 1 rudyment 2011-12-12 16:04:06 UTC
Created attachment 114050 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2011-12-12 16:12:39 UTC
exceptions from java refactorings looks very similar to just fixed the same issue #205913 in cnd. 
Fyi, the reason was: 
- if you have two ModficiationResult objects (coming from different File groups after sorting by groups) and they are doing modification in the same file object in the same place => exception occurs.
Comment 3 Jan Lahoda 2012-09-11 13:02:08 UTC

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