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

Summary: Copy and and paste file, wrong class was renamed
Product: java Reporter: _ viendu <viendu>
Component: UnsupportedAssignee: Jan Becicka <jbecicka>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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