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 208116 - [Change Parameters] SIOOBE when changing parameter name in Change Method Parameters dialog
Summary: [Change Parameters] SIOOBE when changing parameter name in Change Method Par...
Status: RESOLVED DUPLICATE of bug 204788
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-07 09:30 UTC by Jiri Prox
Modified: 2012-02-07 10:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (7.78 KB, text/plain)
2012-02-07 09:30 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2012-02-07 09:30:27 UTC
Created attachment 115503 [details]
stack trace

SIOOBE when changing parameter name in Change Method Parameters dialog

Steps to reproduce:
1) invoke Change Method Parameters dialog
2) add new parameter
3) move it to the first position
4) delete its name
5) move focus to another table cell

-> SIOOBE is sometimes thrown (unfortunately I cannot see the pattern when it occurs)


java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1958)
	at java.lang.String.substring(String.java:1925)
	at org.netbeans.modules.refactoring.java.ui.ChangeParametersPanel$ParamEditor.getCellEditorValue(ChangeParametersPanel.java:1196)
	at javax.swing.JTable.editingStopped(JTable.java:4725)
	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)


.....
whole stacktrace is attached
Comment 1 Jiri Prox 2012-02-07 09:30:42 UTC
Product Version: NetBeans IDE Dev (Build 201202070400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)
User directory: C:\Users\jprox\.netbeans\dev
Cache directory: C:\Users\jprox\.netbeans\dev\var\cache
Comment 2 Ralph Ruijs 2012-02-07 10:13:08 UTC

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