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 226173 - After copying a class, renaming it renames the original class.
Summary: After copying a class, renaming it renames the original class.
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-15 12:36 UTC by pekarna
Modified: 2013-02-15 16:12 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 pekarna 2013-02-15 12:36:20 UTC
NetBeans IDE Build 201302020001

STR:

1) Have a class A, used in some other classes
2) Copy and paste it to different package (I used Ctrl-C/V in Projects window)
3) Rename the copied class to B

What happens:

- The file names are as should be, but:
- The copied file B.java contains "public class A { ..."
- The original file A.java contains "public class B { ..."
- The references to the _original_ class are replaced. They should remain untouched.

Not sure if this happens consistently or my user dir is broken.
But restart of NB didn't help.
Comment 1 Jiri Prox 2013-02-15 13:32:44 UTC
Can you please provide sample project, demonstrating this behavior?
Thanks
Comment 2 Ralph Ruijs 2013-02-15 16:12:06 UTC
I'm unable to reproduce this issue in 7.3rc2 and today's build. Please add more information on how to reproduce this behavior. Thanks!