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 234505 - IllegalArgumentException: len=-4 < 0
Summary: IllegalArgumentException: len=-4 < 0
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-16 15:49 UTC by athompson
Modified: 2013-09-05 13:55 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 201141


Attachments
stacktrace (10.86 KB, text/plain)
2013-08-16 15:49 UTC, athompson
Details
stacktrace (11.58 KB, text/plain)
2013-08-20 11:01 UTC, bolsover
Details
stacktrace (11.58 KB, text/plain)
2013-08-20 11:10 UTC, bolsover
Details
stacktrace (11.58 KB, text/plain)
2013-08-20 11:19 UTC, bolsover
Details
stacktrace (11.21 KB, text/plain)
2013-08-22 09:22 UTC, Exceptions Reporter
Details
stacktrace (11.14 KB, text/plain)
2013-08-25 00:40 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2013-08-16 15:49:17 UTC
Build: NetBeans IDE Dev (Build 201308141142)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b53, Java(TM) SE Runtime Environment, 1.7.0_40-ea-b34
OS: Mac OS X

User Comments:
athompson: renamed field (including getters/setters)

GUEST: Renaming a private property in Java class with renaming getters and setters and comments

rweaver: Refactoring a field

rudyment: When wrongly named file renamed to the name of the included public class




Stacktrace: 
java.lang.IllegalArgumentException: len=-4 < 0
   at org.netbeans.editor.BaseDocument.handleRemove(BaseDocument.java:950)
   at org.netbeans.editor.BaseDocument$FilterBypassImpl.remove(BaseDocument.java:2493)
   at javax.swing.text.DocumentFilter.remove(DocumentFilter.java:79)
   at org.openide.text.CloneableEditorSupport$DocFilter.remove(CloneableEditorSupport.java:3119)
   at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:936)
   at org.netbeans.api.java.source.ModificationResult.processDocumentLocked(ModificationResult.java:436)
Comment 1 athompson 2013-08-16 15:49:18 UTC
Created attachment 138796 [details]
stacktrace
Comment 2 bolsover 2013-08-20 11:01:04 UTC
Created attachment 138899 [details]
stacktrace

Refactoring - rename of class variable; rename comments and  getters, setters both selected
Comment 3 bolsover 2013-08-20 11:10:04 UTC
Created attachment 138900 [details]
stacktrace

Refactoring - rename of class variable; rename comments and  getters, setters both selected
Comment 4 bolsover 2013-08-20 11:19:04 UTC
Created attachment 138901 [details]
stacktrace

Refactoring - rename of class variable; rename comments and  getters, setters both selected
Comment 5 Exceptions Reporter 2013-08-20 11:19:09 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=201141
Comment 6 Exceptions Reporter 2013-08-22 09:22:05 UTC
Created attachment 139050 [details]
stacktrace

Call Refactor -> Rename -> Getter/setter + Comments
Comment 7 Exceptions Reporter 2013-08-25 00:40:07 UTC
Created attachment 139195 [details]
stacktrace

Refactoring code... trying to rename a variable
Comment 8 Ralph Ruijs 2013-08-26 07:31:50 UTC
changeset   : 08160de12cfe
author      : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date        : Mon Aug 26 09:21:54 CEST 2013
summary     : #234505 - IllegalArgumentException: len=-4 < 0
Comment 9 athompson 2013-09-05 13:55:20 UTC
yup