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.
JavaFX 1.3 Build #58 Dec 7, 2009 12:00:35 AM Product Version = NetBeans IDE 6.8 (Build 200912041610) (#ec9be6a6486c) 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 class: -------------- A.fx ---------------------- public abstract class A{ public var name:String = "A"; public abstract function f():Void; } -------------------------------------------- - Create B class: -------------- B.fx ---------------------- class B extends A{ override var name = "B"; override function f() { println("H"); } } -------------------------------------------- - Refactor -> Rename the 'f' function to 'g' in the A class B.fx:11: Function f() declared 'override' but does not override another function. override function f() { B.fx:9: javafxapplication1.B is not abstract and does not override abstract method g() in javafxapplication1.A class B extends A{ 2 errors
fixed in http://hg.netbeans.org/javafx/rev/798b6ea682f7
The issue is still reproduced in NetBeans-JavaFX-Soma: #65 Dec 14, 2009 12:00:35 AM
Are you testing it on a clean user dir? This issue depends on scanned data which will be missing if not using a clean userdir or not making change to class B and saving.
Yes, I cleaned the userdir. It does not help. I also saved all files before refactoring. I use the NetBeans IDE 6.8 RC1 (Build 200911252200) and install the JavaFX plugin NetBeans-JavaFX-Soma: #65 Should I use the new NetBeans build?
I can confirm the bug. Working on resolution.
Changeset: 995a134bb124 Author: Jaroslav Bachorik <yardus@netbeans.org> Date: 2009-12-15 11:40 Message: Issue #178236 - Refactoring does not update overridden functions use sypertypes when searching for overriden methods and variables
verified in NetBeans-JavaFX-Soma: #69
The fix has been ported to branch release68_fixes http://hg.netbeans.org/javafx/rev/108f46bcff39
The issue is reproduced in NB 6.8 patch1 2010-01-25_21-27-59 In NB 6.9 Build 201001190201 shows message "Cannot rename here". So it is not possible to rename overridden function in NB 6.9 now.
Unable to reproduce in Nb 6.8 Patch 1 after merging the TreePathHandle -> ElementLocation refactoring of "Refactoring". http://hg.netbeans.org/javafx/rev/430337942c2b
Verified in NB 6.8 Patch1 2010-01-28_00-36-51
verified in NetBeans-JavaFX-Soma: #140