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 58593 - [41cat] refactor package name is case insensitive
Summary: [41cat] refactor package name is case insensitive
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: Daniel Prusa
URL:
Keywords:
: 98346 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-04 23:04 UTC by schwarcz
Modified: 2007-04-03 18:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screen shot (82.44 KB, image/jpeg)
2005-05-04 23:59 UTC, schwarcz
Details
screen shot showing duplicate packages displayed in project window (71.05 KB, image/jpeg)
2005-05-05 00:03 UTC, schwarcz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schwarcz 2005-05-04 23:04:56 UTC
[ JDK VERSION : 1.5.0_02 ]

in RC2, attempts to rename by changing case of the name fail with the error that the package already exists.

for example if package com.bill.eXit exists refactoring the name com.bill.exit fails with the message that com.bill.exit exists.

Work around: refactor to an intermediate name as in com.bill.foo and then refactor again to the target name com.bill.exit.
Comment 1 schwarcz 2005-05-04 23:58:39 UTC
Note also that the project and file windows do not show the correct new package.
 In changing the path from com.schwarcz.XXX to com.schwarcz.xxx, the Files
window still shows XXX.  

I will attach a screen shot.
Comment 2 schwarcz 2005-05-04 23:59:31 UTC
Created attachment 21981 [details]
screen shot
Comment 3 schwarcz 2005-05-05 00:03:00 UTC
Created attachment 21982 [details]
screen shot showing duplicate packages displayed in project window
Comment 4 Jan Becicka 2005-05-05 09:30:03 UTC
Yes. There is a problem with case sensitivity on Windows where folder
com/schwarcz/XXX is identical to com/schwarcz/xxx.
Comment 5 Jan Becicka 2006-11-22 09:59:40 UTC
Fixed in 6.0. But the problem with folders on Windows still remains.
Comment 6 Jan Lahoda 2007-03-23 15:28:29 UTC
*** Issue 98346 has been marked as a duplicate of this issue. ***