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 44999 - Copy & Paste to the same package doesn't change class declaration/constructors
Summary: Copy & Paste to the same package doesn't change class declaration/constructors
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2004-06-16 14:26 UTC by Marian Mirilovic
Modified: 2007-04-03 18:02 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 Marian Mirilovic 2004-06-16 14:26:52 UTC
[nb_dev](200406151800), [jdk1.5.0](b51)

Steps to reproduce:
- run IDE
- open project
- create new Java file "MyFile.java"
- Copy/Paste MyFile.java to the same package - it'
renamed to "MyFile_1.java"
-> *but* MyFile_1.java file contains declaration
of MyFile class, and costructor for MyFile class 


Rename works fine if you invoke Rename action, but
if class is renamed by IDE rename action isn't
invoked ...

just FYI - it worked this way for 3.6, 3.5 and
earlier ....
Comment 1 Jan Becicka 2004-06-17 08:33:14 UTC
Fixed.
Checking in JavaDataObject.java;
/cvs/java/src/org/netbeans/modules/java/JavaDataObject.java,v  <-- 
JavaDataObject.java
new revision: 1.181; previous revision: 1.180
done
Comment 2 Marian Mirilovic 2004-06-18 15:29:48 UTC
verified in [nb_dev](200406171800)