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 173564 - Refactoring does not rename the value for the overridden attribute
Summary: Refactoring does not rename the value for the overridden attribute
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: J Bachorik
URL: http://javafx-jira.kenai.com/browse/J...
Keywords:
Depends on:
Blocks: 172477 173077
  Show dependency tree
 
Reported: 2009-10-02 10:45 UTC by Alexandr Scherbatiy
Modified: 2009-11-17 07:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-10-02 10:45:23 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{
    var a:A;     
}


class B extends A{
     override var a = A{};
}
------------------------------------------

- Refactor->Rename the A class to D
The result is:
------------------------------------------
class D{
    var a:D;
}

class B extends D{
     override var a = A{};
}
------------------------------------------

Main.fx:14: cannot find symbol
symbol  : class A
location: class javafxapplication9.Main.B
     override var a = A{};
1 error
Comment 1 J Bachorik 2009-10-02 16:04:34 UTC
This is caused by the fact that javafx compiler doesn't generate InstantiateTree within the initialization block of an
overriden var (as opposed to the non-overriden var).
Filed as http://javafx-jira.kenai.com/browse/JFXC-3523
Comment 2 J Bachorik 2009-10-07 12:51:53 UTC
marking as dependent on a resolution of the related javafxc issue
Comment 3 J Bachorik 2009-11-09 03:51:26 UTC
fixed by using updated compiler binaries - http://hg.netbeans.org/javafx/rev/b3afe707e460
Comment 4 Alexandr Scherbatiy 2009-11-17 07:38:24 UTC
verified in Build 200911170201