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.
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)
Created attachment 114050 [details] stacktrace
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.
*** This bug has been marked as a duplicate of bug 207264 ***