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 175771 - Renaming does not update name after indexof keyword
Summary: Renaming does not update name after indexof keyword
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:
Keywords:
Depends on:
Blocks: 173077
  Show dependency tree
 
Reported: 2009-10-30 13:30 UTC by Alexandr Scherbatiy
Modified: 2009-11-16 07:10 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-30 13:30:36 UTC
Product Version         = NetBeans IDE Dev (Build 200910291407) (#ba1aa161544a)
  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:
- Copy the code to the editor
---------------------------------------------
import javafx.scene.control.ListView;

var animals = ["cat", "dog", "mouse"];

ListView {
	items: for (animal in animals) "{indexof animal} - {animal}"
}
---------------------------------------------

- Refactor->Rename the animal variable to animal2 in the 'for (animal in animals)' statement
The result is:
---------------------------------------------
ListView {
	items: for (animal2 in animals) "{indexof animal} - {animal2}"
}
---------------------------------------------

Main.fx:14: cannot find for clause variable named animal.
        items: for (animal2 in animals) "{indexof animal} - {animal2}"
                                          ^
1 error
Comment 1 J Bachorik 2009-11-09 03:43:52 UTC
fixed in http://hg.netbeans.org/javafx/rev/ee055f65923d
Comment 2 Alexandr Scherbatiy 2009-11-16 07:10:28 UTC
verified in Build 200911160201