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.
Summary: | Renaming class throws AssertionError RenameRefactoringElement.init | ||
---|---|---|---|
Product: | javafx | Reporter: | Alexandr Scherbatiy <sunflower> |
Component: | Unsupported | Assignee: | J Bachorik <yardus> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | sunflower |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=159217 | ||
Issue Type: | DEFECT | Exception Reporter: | 159217 |
Bug Depends on: | |||
Bug Blocks: | 173077 | ||
Attachments: |
stacktrace
stacktrace |
Description
Alexandr Scherbatiy
2009-09-29 11:21:25 UTC
Created attachment 88500 [details]
stacktrace
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 :( |