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 71876 - file copy from one project to another replaces class name with "java"
Summary: file copy from one project to another replaces class name with "java"
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-25 20:38 UTC by tfeene
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

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 tfeene 2006-01-25 20:38:44 UTC
1) I copied "MyClass.java" from my Netbeans project called "project2" using the 
   Files Window and right-clicking the mouse and choosing "Copy" .

2) I deleted "MyClass.java" from my Netbeans project called "project1" using the 
   Files Window and right-clicking the mouse and choosing "Delete" .

3) I placed mouse pointer over folder in "project1" that used to contain
"MyClass.java" before I deleted it.  I then right-clicked and chose "Paste".

This sequence should have simply replaced one file with another of the same
name, which it did.  However, the classname inside the file itself was changed
to "java".  In other words, in the class declaration and constructors, the
string "MyClass" was replaced with the string "java".
Comment 1 Marian Mirilovic 2006-01-26 09:47:20 UTC
It works for me on NB 5.0 - FCS build , JDK 1.5.0_06, Linux
Comment 2 Marian Mirilovic 2006-01-28 07:36:05 UTC
Comments from reporter:

I'm using the following:
NetBeans 5.0 RC2 (Build 200601172200)
Fedora Core 4 Linux
Java 1.5.0_06
Java Home: /opt/jdk1.5.0_06/jre 
------------------------------
Comment 3 Jan Becicka 2006-05-05 13:25:19 UTC
I'm sorry I cannot reproduce. Please reopen if you are still able to reproduce it.