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 127982 - Refactor file copy paste names the class wrongly
Summary: Refactor file copy paste names the class wrongly
Status: RESOLVED DUPLICATE of bug 127385
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-21 08:48 UTC by ppandurangan
Modified: 2008-02-21 13: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 ppandurangan 2008-02-21 08:48:08 UTC
Refactor copy names the class and subcomponents wrongly.

I had a class like this... 

public class RecordGen_OSCCTP_R5 extends AbstractPMRecordGenerator
{    
    public RecordGen_OSCCTP_R5(Vector moObjectList, long dtStartTime,
                                    int iNumberOfIntervals, boolean is24H, 
                                    boolean generateAllValidBucket,
                                    boolean generateMissingBucket)  {

.
.
.


When I copy and paste this file, the suggested name is RecordGen_OSCCTP_R51. 

I changed the suggested name to RecordGen_OSCCTP_R3.

Now even though the file is named correctly as RecordGen_OSCCTP_R3.java, class is renamed to RecordGen_OSCCTP_R5_1..

Please fix this.
Comment 1 ppandurangan 2008-02-21 08:49:12 UTC
Refactor copy names the class and subcomponents wrongly.

I had a class like this... 

public class RecordGen_OSCCTP_R5 extends AbstractPMRecordGenerator
{    
    public RecordGen_OSCCTP_R5(Vector moObjectList, long dtStartTime,
                                    int iNumberOfIntervals, boolean is24H, 
                                    boolean generateAllValidBucket,
                                    boolean generateMissingBucket)  {

.
.
.


When I copy and paste this file, the suggested name is RecordGen_OSCCTP_R51. 

I changed the suggested name to RecordGen_OSCCTP_R3.

Now even though the file is named correctly as RecordGen_OSCCTP_R3.java, class is renamed to RecordGen_OSCCTP_R5_1..

Please fix this.
Comment 2 Jiri Prox 2008-02-21 13:02:33 UTC
I can reproduce it only when "copy without refactoring" is checked. To get class name renamed correctly, perform copy
with refactoring.

This is similar to issue 127385

*** This issue has been marked as a duplicate of 127385 ***