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 - Refactoring->Copy does not update class name
Summary: Refactoring->Copy does not update class name
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-01-29 02:17 UTC by Alexandr Scherbatiy
Modified: 2010-02-09 04:09 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-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