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 51470 - Copy and and paste file, wrong class was renamed
Summary: Copy and and paste file, wrong class was renamed
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-12 19:16 UTC by _ viendu
Modified: 2007-09-26 09:14 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 _ viendu 2004-11-12 19:16:40 UTC
I am not sure if this is a refactor bug, or
something else.  Please change as needed.

If I have a file:

NameA.java

In there, there's 2 classes in this order:

class NameB{


}

public class NameA{

}

Copy  file NameA, and paste to a same folder, it
would be:

NameA_1.java

When open NameA_1.java, the class NameB was
renamed to NameA_1, while NameA is still the same.
Comment 1 Martin Matula 2004-11-12 22:42:09 UTC
I am able to reproduce this with the current trunk build. Honzo,
please look at it.
Comment 2 Jan Becicka 2004-12-21 15:54:29 UTC
Checking in JavaDataObject.java;
/cvs/java/src/org/netbeans/modules/java/JavaDataObject.java,v  <-- 
JavaDataObject.java
new revision: 1.198; previous revision: 1.197
done