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 46657 - [40cat] Two nodes with same name in one directory/package after Move
Summary: [40cat] Two nodes with same name in one directory/package after Move
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: REGRESSION
: 47371 51391 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-28 10:34 UTC by Lukas Hasik
Modified: 2008-12-22 18:58 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (12.30 KB, image/png)
2004-07-28 10:35 UTC, Lukas Hasik
Details
dup in web folder (7.96 KB, image/png)
2004-12-03 11:11 UTC, llturro
Details
dup in build folder (7.26 KB, image/png)
2004-12-03 11:12 UTC, llturro
Details
dup in project view (8.93 KB, image/png)
2004-12-03 11:12 UTC, llturro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2004-07-28 10:34:34 UTC
-have class test.java in packages a and b
-copy test.java from a to b

* you have two same classes test.java in package b *

note: the file renames to test_1.java properly but
the displayed name stay still test.java
Comment 1 Lukas Hasik 2004-07-28 10:35:06 UTC
Created attachment 16500 [details]
screenshot
Comment 2 Lukas Hasik 2004-07-28 11:37:19 UTC
unable to reproduce after restart... i did same simple refactoring and
copy, pasting before it happend. RANDOM till I'll find how to reproduce.
Comment 3 zikmund 2004-08-13 13:36:25 UTC
100% reproducible - but only on move (drag&drop or ^X & ^V)

Describing with files in web sources (java files add refactoring staff):

1) Have a node (index.jsp) in directories A and B
2) Move index.jsp from directory A to B
3) ERROR:
there are 2 nodes named "index.jsp" in directory B
Notice: as Lukas mentioned, file was renamed to index_1.jsp properly
(open it in editor), but the display name in explorer is not updated
(neither in Projects nor in Files window).
Comment 4 Petr Nejedly 2004-08-22 19:50:55 UTC
Petr, you were looking for this issue last week, cc-ing you...
Comment 5 Petr Hrebejk 2004-08-23 13:14:01 UTC
*** Issue 47371 has been marked as a duplicate of this issue. ***
Comment 6 Petr Nejedly 2004-10-27 08:35:03 UTC
Easily reprodcible regardless of file type. Seems like missed PCE or
something.
It is a regression, it worked correctly in 3.6
Comment 7 Petr Nejedly 2004-11-11 10:47:41 UTC
*** Issue 51391 has been marked as a duplicate of this issue. ***
Comment 8 Milan Kubec 2004-12-03 09:01:24 UTC
IMO such regression should deserve higher priority than P3.
Comment 9 llturro 2004-12-03 11:07:35 UTC
I agree. This, along with issue 46446 can't lead to a very weird
behavior with web applications. I attached three screenshots with a
duplicated file and how differently it shows.
Comment 10 llturro 2004-12-03 11:11:49 UTC
Created attachment 19124 [details]
dup in web folder
Comment 11 llturro 2004-12-03 11:12:16 UTC
Created attachment 19125 [details]
dup in build folder
Comment 12 llturro 2004-12-03 11:12:42 UTC
Created attachment 19126 [details]
dup in project view
Comment 13 Marian Mirilovic 2004-12-21 08:57:41 UTC
I can still reproduce it  in NB4.1 (200412191900), these steps leads
to uncompilable code !
Comment 14 Petr Nejedly 2005-01-13 15:36:50 UTC
There was missing update of the display name.
openide/loaders/src/org/openide/loaders/DataNode.java,v1.18
Comment 15 Jan Becicka 2005-01-27 12:09:00 UTC
*** Issue 51391 has been marked as a duplicate of this issue. ***
Comment 16 Tomas Danek 2005-07-15 09:42:23 UTC
works ok now, file is renamed. Ver 4.2 20050706