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 179982

Summary: Refactoring->Copy does not update class name
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: J Bachorik <yardus>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173077    

Description Alexandr Scherbatiy 2010-01-29 02:17:12 UTC
NetBeans-JavaFX-Soma:  #130

Steps to reproduce:

- Create A class
------------------------------------
package aaa;

public class A {

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

- Copy the class with name A1 to the same directory
 File name is updated
   
- Open the A1 file
 The class name still is A instead of A1

------------------------------------
public class A {

}
------------------------------------
Comment 1 Alexandr Scherbatiy 2010-01-29 02:17:25 UTC
  Product Version         = NetBeans IDE Dev (Build 201001190201) (#4d62ab8d1fa1)
  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-01-29 04:28:44 UTC
fixed in http://hg.netbeans.org/javafx/rev/b0386dca612f
Comment 3 Alexandr Scherbatiy 2010-02-05 03:33:58 UTC
 NetBeans-JavaFX-Soma: #143

After copying the A.fx file contains A1 class and the
A1.fx file contains A class:

-----------  A.fx -----------------
public class A1 {

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

-----------  A1.fx -----------------
public class A {

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

Should be vice versa.
Comment 4 J Bachorik 2010-02-05 06:51:35 UTC
fixing a mistakenly removed code - http://hg.netbeans.org/javafx/rev/7de5ddc4d05d
Comment 5 Alexandr Scherbatiy 2010-02-09 04:09:22 UTC
verified in NetBeans-JavaFX-Soma: #147