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 173584

Summary: Refactoring allows to rename a variable to the existed one
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: J Bachorik <yardus>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173077    

Description Alexandr Scherbatiy 2009-10-02 12:32:51 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:
------------------------------------------------
public var a = 10;
public var b = a + 10;
------------------------------------------------

- Reafctor->rename the 'a' variable  to 'b' 

The result is:
------------------------------------------------
public var b = 10;
public var b = b + 10;
------------------------------------------------


Main.fx:10: b is already defined in javafxapplication17.Main
public var b = b + 10;
1 error
Comment 1 J Bachorik 2009-10-02 13:43:53 UTC
fixed in http://hg.netbeans.org/javafx/rev/1e9526fb38fa
Comment 2 Alexandr Scherbatiy 2009-10-05 13:35:19 UTC
verified in netbeans-trunk-nightly-200910030241-javafx-full.zip