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.
Build: NetBeans IDE Dev (Build 200910030241) VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03 OS: Windows XP, 5.1, x86 Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1937) at org.netbeans.modules.javafx.refactoring.impl.plugins.RenameRefactoringPlugin.fastCheckParameters(RenameRefactoringPlugin.java:209) at org.netbeans.modules.javafx.refactoring.impl.plugins.JavaFXRefactoringPlugin$3.check(JavaFXRefactoringPlugin.java:71) at org.netbeans.modules.javafx.refactoring.impl.plugins.JavaFXRefactoringPlugin$4.run(JavaFXRefactoringPlugin.java:108) at org.netbeans.modules.javafx.refactoring.impl.plugins.JavaFXRefactoringPlugin$4.run(JavaFXRefactoringPlugin.java:106) at org.netbeans.modules.javafx.source.parsing.LegacyUserTask.run(LegacyUserTask.java:68)
Created attachment 88835 [details] stacktrace
Steps to reproduce: - Create the 'MyCustomNode' JavaFX class under the 'pack' package: ------------------------------------------------- import javafx.scene.CustomNode; import javafx.scene.Group; import javafx.scene.Node; public class MyCustomNode extends CustomNode { public override function create(): Node { return Group { content: [] }; } } ------------------------------------------------- - Create the Main JavaFX file under the 'javafxapplication9' package ------------------------------------------------- import javafx.stage.Stage; import javafx.scene.Scene; import pack.MyCustomNode; Stage { title: "Application title" width: 250 height: 80 scene: Scene { content: MyCustomNode{} } } ------------------------------------------------- - Right-click the 'MyCustomNode' class name in the 'content: MyCustomNode{}' line, and select Refactor->Rename - Add '2' after the 'MyCustomNodes' name in the Rename dialog The exception pops up.
fixed in http://hg.netbeans.org/javafx/rev/837f9fc199dc
verified in netbeans-trunk-nightly-200910080418-javafx-full.zip