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 173243

Summary: [Refactoring] Attribute renaming is not propagated to code
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-09-29 10:38:29 UTC
Steps to reproduce:

- Copy the code to the editor:
-----------------------------------------------
class A {
    public var name: String;

}

var a = A{
    name: "Hello World"
};

println("name: {a.name}");
-----------------------------------------------
- Rename the 'name' attribute to 'name2'
- Build the code


Main.fx:15: cannot find symbol
symbol  : variable name
location: class javafxapplication3.Main.A
    name: "Hello World"
Main.fx:18: cannot find symbol
symbol  : variable name
location: class javafxapplication3.Main.A
println("name: {a.name}");
2 errors
Comment 1 Alexandr Scherbatiy 2009-09-29 10:40:22 UTC
Build netbeans-6.8beta-200909281634-javafx-full.zip 

  Product Version         = NetBeans IDE 6.8 Beta (Build 200909281634) (#066b555e5ecf)
  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.
Comment 2 J Bachorik 2009-10-02 13:24:36 UTC
fixed in http://hg.netbeans.org/javafx/rev/0132b76a8d5e
Comment 3 Alexandr Scherbatiy 2009-10-05 11:03:53 UTC
verified in netbeans-trunk-nightly-200910030241-javafx-full.zip