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.
netbeans-trunk-nightly-200909151512-javafx-full.zip Product Version = NetBeans IDE Dev (Build 200909151512) (#ebf350cbb86b) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc. Steps to reproduce: - Create 'A' Java class ---------------------------------- public class A { } ---------------------------------- - Create an empty JavaFX file - Copy the code to the JavaFX file: ----------------------------------------- new A(); ----------------------------------------- - Go to the 'A' java class - Refactor-Rename the 'A' name in the Java file to 'B' The A name class is changed to B. However the 'A' class has not been changed in JavaFX file: Main.fx:9: cannot find symbol symbol : class A location: class javafxapplication3.Main new A(); 1 error
as this bug is either caused by the fx compiler or it too complicated to fix it in 6.8 - > approved
should be implemented in http://hg.netbeans.org/javafx/rev/1ead46aa3bb4
NetBeans-JavaFX-Soma: #181 It does not work in more complicated case. Steps to reproduce: - Open the attached project - Go to the mathematics.multidimensional package - Refactor->Rename the IMDVector java class to IMDVector2 - Clean and build the project MultiDim\src\mathematics\multidimensional\AMDMatrix.fx:19: cannot find symbol symbol : class IMDVector location: class mathematics.multidimensional.AMDMatrix override function transform (vector:IMDVector):IMDVector { MultiDim\src\mathematics\multidimensional\AMDMatrix.fx:19: cannot find symbol symbol : class IMDVector location: class mathematics.multidimensional.AMDMatrix override function transform (vector:IMDVector):IMDVector { MultiDim\src\mathematics\multidimensional\AMDTransform.fx:39: cannot find symbol symbol : class IMDVector location: class AMDTransform$ObjLit$5 override function transform(vector: IMDVector):IMDVector{ MultiDim\src\mathematics\multidimensional\AMDTransform.fx:39: cannot find symbol symbol : class IMDVector location: class AMDTransform$ObjLit$5 override function transform(vector: IMDVector):IMDVector{
Created attachment 95034 [details] JavaFX project
The latest problem you experienced wasn't bound to Java->JavaFX refactoring. It was caused by incorrect indexing of references to arrays of interface. This changeset (http://hg.netbeans.org/javafx/rev/04770dc024da) fixes the problem
NetBeans-JavaFX-Soma: #185 (Mar 15, 2010 12:01:00 AM) Tried the same steps: - Open the attached project - Go to the mathematics.multidimensional package - Refactor->Rename the IMDVector java class to IMDVector2 - Clean and build the project and got: deps-jar: MultiDim\src\mathematics\multidimensional\ICMDMatrix.java:16: cannot find symbol symbol : class IMDVector location: interface mathematics.multidimensional.ICMDMatrix void setRow(int n, IMDVector row); MultiDim\src\mathematics\multidimensional\ICMDMatrix.java:17: cannot find symbol symbol : class IMDVector location: interface mathematics.multidimensional.ICMDMatrix void setColumn(int m, IMDVector column); MultiDim\src\mathematics\multidimensional\IMDMatrix.java:16: cannot find symbol symbol : class IMDVector location: interface mathematics.multidimensional.IMDMatrix IMDVector mul(IMDVector vector); 12 errors
Sometimes the IMDVector class refactoring is not propagated only to Java. Sometimes it is not propagated to JavaFX classes.
Please, make sure you are testing it on a clean userdir. Some residual indexing information from older versions could (even though it should not) confuse the classindex. However, it is mighty suspicious that even java refactoring is not correct in some cases - please note that the javafx side only provides additional changes as the response to java initiated rename of the IMDVector interface, thus the java refactoring should work as expected. Any reproducible test case would be highly appreciated (as I am not able to get the source code to uncompilable state just by renaming IMDVector interface)
I tried on Mac, and on Windows XP with the fresh userdir and the issue is not reproduced now.
Closing as per the last comment
verified in NetBeans-JavaFX-Soma: #189