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 47371 - [40cat] When copying a file that already exists, renames the new file to xxx_1.xxx, but shows the file name without it.
Summary: [40cat] When copying a file that already exists, renames the new file to xxx_...
Status: RESOLVED DUPLICATE of bug 46657
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-08-18 13:42 UTC by llturro
Modified: 2004-08-23 13:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Duplicated file (21.80 KB, image/png)
2004-08-20 17:40 UTC, llturro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description llturro 2004-08-18 13:42:50 UTC
[ BUILD # : 200408121535 ]
[ JDK VERSION : J2SE 1.4.2_04 ]

Copying files within the Project window, drag & drop,
that have the same name, ends with two files with 
EXACTLY the same name. When you go to the system
trying to understand what happened, you find there
are to files, but not with the same name:

xxxx.xxx
xxxx_1.xxx
Comment 1 Marian Mirilovic 2004-08-18 15:34:59 UTC
I think already reported ...
Comment 2 Jesse Glick 2004-08-18 20:15:23 UTC
I believe this was already reported and fixed?
Comment 3 Petr Hrebejk 2004-08-19 10:17:06 UTC
Tried and it really seems to be fixed
Comment 4 llturro 2004-08-20 17:39:30 UTC
NB4.0 Beta 1, JDK1.5

I still can see to files with Exactly the same name.
Comment 5 llturro 2004-08-20 17:40:23 UTC
Created attachment 16992 [details]
Duplicated file
Comment 6 llturro 2004-08-20 17:50:08 UTC
Althoguh, the editor window shows the file name with _1 suffix.
Comment 7 Petr Hrebejk 2004-08-21 11:52:30 UTC
Please, specify the exact steps how to reproduce it. I'm really not
able to. Thanks.
Comment 8 llturro 2004-08-23 13:06:50 UTC
1) Create a new project, Java Application will make it.
2) Create the package test.
3) Create a new class named MyClass.
4) Create the packege test2.
5) Right click on MyClass and select Copy.
6) Select test2 package.
7) Right-click and select Paste.
8) Drag test.MyClass to test2 package and drop it.

test2 ends with two MyClass classes. If you drag & drop the last class
back to test package you'll notice that refactoring preview shows the
_1 suffix.
Comment 9 Petr Hrebejk 2004-08-23 13:14:02 UTC

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