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 180192 - Function is not refactored in String expression
Summary: Function is not refactored in String expression
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks: 173077
  Show dependency tree
 
Reported: 2010-02-03 03:28 UTC by Alexandr Scherbatiy
Modified: 2010-02-08 03:53 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 2010-02-03 03:28:23 UTC
Steps to reproduce:

- Open the attached project
https://netbeans.org/bugzilla/attachment.cgi?id=93285


- Build the project
BUILD SUCCESSFUL

- Go to the 'model.Model' class
- Refactor->Rename the 'code' function to 'code2'
- Build the project

deps-jar:
JavaFXShell\src\model\ClassModel.fx:21: cannot find symbol
symbol  : function code()
location: class model.AttributeModel
          "{for(a in attributes) "  {a.code()}\n" }"
JavaFXShell\src\model\ClassModel.fx:23: cannot find symbol
symbol  : function code()
location: class model.FunctionModel
          "{for(f in functions) "  {f.code()}\n" }"
JavaFXShell\src\model\ClassModel.fx:18: Function code() declared 'override' but does not override another function.
    override function code() {
JavaFXShell\src\generator\ProjectGenerator.fx:44: code() has script only (default) access in model.ClassModel
    FileManager.save("{dir}/{cls.name}.fx", cls.code());
4 errors
Comment 1 Alexandr Scherbatiy 2010-02-03 03:28:41 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.
Comment 2 J Bachorik 2010-02-04 07:05:52 UTC
fixed in http://hg.netbeans.org/javafx/rev/e468b6acbb64
Comment 3 Alexandr Scherbatiy 2010-02-08 03:53:06 UTC
verified in NetBeans-JavaFX-Soma: #146