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 51391 - 2 classes in 1 package with the same name
Summary: 2 classes in 1 package with the same name
Status: CLOSED DUPLICATE of bug 46657
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 51390 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-10 16:12 UTC by Jaromir Uhrik
Modified: 2007-09-26 09:14 UTC (History)
0 users

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 Jaromir Uhrik 2004-11-10 16:12:42 UTC
[200411091800; jdk1.5.0_01-b03]
1.Create projects PRJ1, PRJ2
2.Create class A in the package PRJ1 of PRJ1
3.Create class A in the package PRJ2 of PRJ2
4.Move PRJ2.A to PRJ1
5.Confirm refactoring dialogs
6.Explorer shows class PRJ1.A.java twice but the
name of the second one is physically on the disk
named A_1.java
Comment 1 Martin Entlicher 2004-11-11 09:49:12 UTC
*** Issue 51390 has been marked as a duplicate of this issue. ***
Comment 2 Petr Nejedly 2004-11-11 10:47:42 UTC

*** This issue has been marked as a duplicate of 46657 ***
Comment 3 Jaromir Uhrik 2005-01-21 14:07:10 UTC
This doesn't seem to be the same issue as fixed 46657. I am able to
reproduce this issue in dev build #200501191900 -> reopening.
Comment 4 Petr Nejedly 2005-01-21 15:38:50 UTC
For me, the explorer shows correctly A_1.java, but the refactoring
renames the class inside the file from prj1.A to prj2.A, instead of
prj2.A_1. So the problem is in refactoring.
Comment 5 Jan Becicka 2005-01-24 09:28:53 UTC
I assume that J2SEProject is responsible for this. File nodes are not
in sync. with file names.
Comment 6 Tomas Zezula 2005-01-24 16:13:49 UTC
Neither java project nor project system do not affect visualization of
JavaDataObject.getDispalyName ().
Both logical and files view are showing DataObjects.
Comment 7 Jan Becicka 2005-01-25 09:21:55 UTC
I don't know what is wrong. Anyway I cannot reproduce it.
Comment 8 Jan Becicka 2005-01-27 12:09:01 UTC

*** This issue has been marked as a duplicate of 46657 ***
Comment 9 Jaromir Uhrik 2005-01-31 11:02:13 UTC
Verified - I am not able to reproduce it now.