Bug 38635 - Refactor / Rename Package doesn't allow rename to same name with different case [refactoring]
Summary: Refactor / Rename Package doesn't allow rename to same name with different ca...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 trivial (vote)
Target Milestone: 3.0 M3   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-08 12:39 EDT by Robert Konigsberg CLA
Modified: 2003-08-28 04:44 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Konigsberg CLA 2003-06-08 12:39:04 EDT
When using Refactor/Rename on a package in Ecipse 2.1.0, I try to rename 
package OtherPackage to "otherpackage" but it will not let me, giving the error 
message, "A resource exists with a different case". I can get around it by 
naming the package "otherXXXpackage", and *then* to "otherpackage", but hey.
Comment 1 Dirk Baeumer CLA 2003-06-10 04:53:41 EDT
Adam, please comment. I guess the core resources doesn't allow this. If so, 
please move to core resources.
Comment 2 Adam Kiezun CLA 2003-06-10 19:48:52 EDT
will look before m2
Comment 3 Adam Kiezun CLA 2003-06-30 05:57:44 EDT
the message comes from our layer - see bug 7960

things have changed and it looks like i can enable it now - but i get
this error in the problems view: 'The project was not built due to "A resource 
exists with a different case: /Asd/bin/fgfd.". Fix the problem, then try 
refreshing this project and rebuilding it since it may be inconsistent.'

Comment 4 Adam Kiezun CLA 2003-06-30 12:24:57 EDT
i enabled the rename now
you get that error on build (with autobuild on) - but it goes away after full 
build (normal build is not enough)
seems like a jcore issue - we call IPackageFragment:rename

moving to jcore for comment
Comment 5 Philipe Mulet CLA 2003-07-24 12:37:27 EDT
Seems like another case of case sensitivity issue.
Comment 6 Kent Johnson CLA 2003-08-13 16:47:39 EDT
2.1.1 prevents me from changing the case of a package, but I have no problem 
doing it in the latest integration build.

Can anyone reproduce this on the latest build?
Comment 7 Adam Kiezun CLA 2003-08-14 06:10:29 EDT
yes - i see it on 20030813.
please sead comment 4 - the rename is enabled but you get an error on build
Comment 8 Kent Johnson CLA 2003-08-14 12:09:37 EDT
Fixed & released to HEAD.

Only happens when the project has a separate output folder and the renamed 
package appears as a delta before the old package name.
Comment 9 David Audel CLA 2003-08-28 04:44:29 EDT
Verified.