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 180337 - Loop parameter is not properly refactored
Summary: Loop parameter is not properly refactored
Status: VERIFIED DUPLICATE of bug 180198
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-05 07:08 UTC by Alexandr Scherbatiy
Modified: 2010-02-08 05:15 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-05 07:08:07 UTC
NetBeans 6.9 NetBeans-JavaFX-Soma: #143


  Product Version         = NetBeans IDE Dev (Build 201002040200) (#dc1d49e38aaa)
  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:
--------------------------------------------------
class A {

    public var seq: Number[];

    function run() {
        for (s1 in seq) {

            for (s2 in seq[s | s != s1]) {
                println(s1);
                println(s2);
            }

        }
    }

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

- Select the 's1' parameter in 'for (s1 in seq) {' line
  and Refactor->Rename it to 's3'

- Build the code:
Main.fx:15: cannot find symbol
symbol  : variable s1
location: class javafxapplication19.Main.A
            for (s2 in seq[s | s != s1]) {
Main.fx:16: cannot find symbol
symbol  : variable s1
location: class javafxapplication19.Main.A
                println(s1);
2 errors
Comment 1 J Bachorik 2010-02-05 07:17:05 UTC
duplicate
casued by a bug in javafxc

*** This bug has been marked as a duplicate of bug 180198 ***
Comment 2 Alexandr Scherbatiy 2010-02-08 05:15:29 UTC
verified as duplicate