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 6.8 Beta (Build 200909281634) 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 User Comments: sunflower: - Copy the code to the editor: ------------------------------------------------------------------------------------------- class Node{ public var content:String; public var head:Node; function print(){ print(head); } function print(elem:Node):Void{ if(elem != null){ println(elem); print(elem); } } } - Refactor -> Rename the Node class to Element The Exception pops up Stacktrace: java.lang.AssertionError at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringElement.init(RenameRefactoringElement.java:276) at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringElement.<init>(RenameRefactoringElement.java:100) at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringElement.create(RenameRefactoringElement.java:88) at org.netbeans.modules.javafx.refactoring.impl.plugins.RenameRefactoringPlugin.prepare(RenameRefactoringPlugin.java:239) at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:419) at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:403)
Created attachment 88500 [details] stacktrace
fixed in http://hg.netbeans.org/javafx/rev/8968feb02c0e
verified in netbeans-trunk-nightly-200910010513-javafx-full.zip
Build: NetBeans IDE Dev (Build 200910291407) 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 User Comments: Steps to reproduce: - Copy the code to the editor: ---------------------------------------------------------------------------------------------------------------------------- import java.lang.Comparable; def INFINITY = Number.MAX_VALUE; public function sign(y:Number):Integer { if( y <0 ) { -1 } else if(0 < y) { 1 } else { 0 } } class DVertex extends Comparable{ //var vertex:Vertex; var value:Number; var previous:Integer; override function compareTo(obj:Object):Integer{ var vertex = obj as DVertex; return sign(value - vertex.value); } } class Vertex{} class Edge{} class Graph{ var vertices:Vertex[] } public function dijkstraShortestPath(source:Vertex, destination:Vertex, graph:Graph):Edge[]{ var vertices = for(v in graph.vertices) DVertex{ previous: indexof v value: if( v == source) then 0 else INFINITY }; return []; } ------------------------------------------------------------------------------ Stacktrace: java.lang.AssertionError at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringElement.init(RenameRefactoringElement.java:274) at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringElement.<init>(RenameRefactoringElement.java:99) at org.netbeans.modules.javafx.refactoring.impl.RenameRefactoringElement.create(RenameRefactoringElement.java:78) at org.netbeans.modules.javafx.refactoring.impl.plugins.RenameRefactoringPlugin.prepare(RenameRefactoringPlugin.java:390) at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:419) at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:403)
Created attachment 90281 [details] stacktrace
Are you sure you were renaming a class? I tried to rename all of them but without any exceptions. Could you provide detailed steps?
This issue is in a fixed state. The last comment was added automatically by the Exception Report dialog. So I did not open this issue but created the issue 175764 instead.
Sorry, I didn't notice the state :(