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.
Summary: | [40cat] Two nodes with same name in one directory/package after Move | ||
---|---|---|---|
Product: | platform | Reporter: | Lukas Hasik <lhasik> |
Component: | Explorer | Assignee: | Petr Nejedly <pnejedly> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | llturro, phrebejk, zikmund |
Priority: | P2 | Keywords: | REGRESSION |
Version: | 4.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
screenshot
dup in web folder dup in build folder dup in project view |
Description
Lukas Hasik
2004-07-28 10:34:34 UTC
Created attachment 16500 [details]
screenshot
unable to reproduce after restart... i did same simple refactoring and copy, pasting before it happend. RANDOM till I'll find how to reproduce. 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). Petr, you were looking for this issue last week, cc-ing you... *** Issue 47371 has been marked as a duplicate of this issue. *** Easily reprodcible regardless of file type. Seems like missed PCE or something. It is a regression, it worked correctly in 3.6 *** Issue 51391 has been marked as a duplicate of this issue. *** IMO such regression should deserve higher priority than P3. 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. Created attachment 19124 [details]
dup in web folder
Created attachment 19125 [details]
dup in build folder
Created attachment 19126 [details]
dup in project view
I can still reproduce it in NB4.1 (200412191900), these steps leads to uncompilable code ! There was missing update of the display name. openide/loaders/src/org/openide/loaders/DataNode.java,v1.18 *** Issue 51391 has been marked as a duplicate of this issue. *** works ok now, file is renamed. Ver 4.2 20050706 |