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.

Bug 173558

Summary: Function name refactoring is not propagated to overridden function body
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: J Bachorik <yardus>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173077    

Description Alexandr Scherbatiy 2009-10-02 09:55:02 UTC
Build: NetBeans IDE Dev (Build 200910010513)
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

Steps to reproduce:

- Copy the code to the editor:
----------------------------------------------------------
class A{

    public var a:A;
    public function f():Number{  3 }
}

class B extends A{

    override function f(){  a.f();  }
}

----------------------------------------------------------

- Refactor->Rename the f() function in the A class to g()

The result is:

----------------------------------------------------------
class A{

    public var a:A;
    public function g():Number{  3 }
}

class B extends A{

    override function g(){  a.f();  }  // compilation error
}
----------------------------------------------------------

Main.fx:18: cannot find symbol
symbol  : function f()
location: class javafxapplication8.Main.A
    override function g(){  a.f();  }
1 error
Comment 1 J Bachorik 2009-10-02 13:25:16 UTC
fixed in http://hg.netbeans.org/javafx/rev/606b84b93a62
Comment 2 Alexandr Scherbatiy 2009-10-05 13:25:32 UTC
verified in netbeans-trunk-nightly-200910030241-javafx-full.zip