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 180196

Summary: Attribute is not refactored in String expression
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: J Bachorik <yardus>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173077    

Description Alexandr Scherbatiy 2010-02-03 03:46:07 UTC
NetBeans-JavaFX-Soma: #141

  Product Version         = NetBeans IDE Dev (Build 201001280200)
(#eeef33500a1a)
  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' JavaFX file:
-------------------------------------------
public class A {
    public var pack:String;
    public var name:String;

    function code():String{""}
}
-------------------------------------------

- Create 'B' JavaFX file:
-------------------------------------------
public class B extends A{
}
-------------------------------------------

- Create 'C' JavaFX file:
-------------------------------------------
public class C extends B{

    override function code() {
          "{pack}\n\n"
          "class {name}\{\n\n"
          "\n\}"
    }

}
-------------------------------------------


- Go to the 'A' class
- Refactor->Rename the 'name' variable to 'name2'
- Build the project

C.fx:17: cannot find symbol
symbol  : variable name
location: class javafxapplication9.C
          "class {name}\{\n\n"

1 error
Comment 1 J Bachorik 2010-02-04 07:06:19 UTC
fixed in http://hg.netbeans.org/javafx/rev/6d1116c215fe
Comment 2 Alexandr Scherbatiy 2010-02-05 04:49:38 UTC
verified in NetBeans-JavaFX-Soma: #143