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 232353 - IllegalArgumentException: len=-88 < 0
Summary: IllegalArgumentException: len=-88 < 0
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-08 00:56 UTC by MackSix
Modified: 2013-08-28 08:37 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201968


Attachments
stacktrace (2.96 KB, text/plain)
2013-07-08 00:56 UTC, MackSix
Details
Proposed patch (1.66 KB, patch)
2013-08-27 10:45 UTC, Ralph Ruijs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-07-08 00:56:50 UTC
This bug was originally marked as duplicate of bug 207264, 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 201307062300)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b16
OS: Windows 7

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

MackSix: Ran I&T create Javadoc on JEdit 5.1 pre1 source code and when I pressed Refactor button, this happend.

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




Stacktrace: 
java.lang.IllegalArgumentException: len=-88 < 0
   at org.netbeans.editor.BaseDocument.handleRemove(BaseDocument.java:943)
   at org.netbeans.editor.BaseDocument$FilterBypassImpl.remove(BaseDocument.java:2476)
   at javax.swing.text.DocumentFilter.remove(DocumentFilter.java:79)
   at org.openide.text.CloneableEditorSupport$DocFilter.remove(CloneableEditorSupport.java:3113)
   at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:929)
   at org.netbeans.api.java.source.ModificationResult.processDocumentLocked(ModificationResult.java:433)
Comment 1 MackSix 2013-07-08 00:56:51 UTC
Created attachment 136796 [details]
stacktrace
Comment 2 Marian Mirilovic 2013-08-22 15:44:07 UTC
duplicate of issue 234505 ?
Comment 3 Ralph Ruijs 2013-08-27 10:45:27 UTC
Created attachment 139298 [details]
Proposed patch
Comment 4 Ralph Ruijs 2013-08-28 08:37:14 UTC
changeset   : 234bbe22a0de
author      : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date        : Wed Aug 28 10:29:47 CEST 2013
summary     : #232353 - IllegalArgumentException: len=-88 < 0