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 228944 - StringIndexOutOfBoundsException: String index out of range: -12
Summary: StringIndexOutOfBoundsException: String index out of range: -12
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-24 10:07 UTC by mienamoo
Modified: 2013-05-24 05:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 200195


Attachments
stacktrace (8.79 KB, text/plain)
2013-04-24 10:07 UTC, mienamoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mienamoo 2013-04-24 10:07:31 UTC
Build: NetBeans IDE 7.3.1 (Build 201304162201)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Windows 7

User Comments:
mienamoo: Changing method parameters - changing a parameter name on the "Change Method Parameters" dialog.




Stacktrace: 
java.lang.StringIndexOutOfBoundsException: String index out of range: -12
   at java.lang.String.substring(String.java:1875)
   at org.netbeans.modules.refactoring.java.ui.ChangeParametersPanel$ParamEditor.getCellEditorValue(ChangeParametersPanel.java:1194)
   at javax.swing.JTable.editingStopped(JTable.java:4721)
   at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:141)
   at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:368)
   at javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:233)
Comment 1 mienamoo 2013-04-24 10:07:32 UTC
Created attachment 133747 [details]
stacktrace
Comment 2 Ralph Ruijs 2013-05-15 12:49:21 UTC
changeset   : http://hg.netbeans.org/jet-main/rev/06f2660737be
author      : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date        : Wed May 15 14:11:32 CEST 2013
summary     : #228944 - StringIndexOutOfBoundsException: String index out of range: -12
Comment 3 Quality Engineering 2013-05-18 02:53:50 UTC
Integrated into 'main-golden', will be available in build *201305172300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/06f2660737be
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #228944 - StringIndexOutOfBoundsException: String index out of range: -12
Comment 4 mienamoo 2013-05-24 05:33:27 UTC
Verified with build 201305212300. Thanks!