Bug 25148 - Can't have different case package names
Summary: Can't have different case package names
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P3 minor (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-21 16:38 EDT by Michael CLA
Modified: 2002-12-18 05:43 EST (History)
1 user (show)

See Also:


Attachments
Contains a regression test for this bug (testDiffererentCasePackageAndClass) (6.11 KB, text/plain)
2002-10-29 12:13 EST, Jerome Lanneluc CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael CLA 2002-10-21 16:38:14 EDT
If two packages have identical names but different case then eclipse complains 
about the project being inconsistent. 

I'd recommend just displaying a better error message since you can't actually 
have this work in windows anyway...

Make a new project with two source folders, create a package named "a" in one 
folder and a package named "A" in another folder.  

Just for the record I wasn't the one to name the packages...

Michael
Comment 1 DJ Houghton CLA 2002-10-21 21:08:36 EDT
This message is generated from jdt.internal.core. 

Under what circumstances is this marker created? 

When the "A" package is created in the "bin" folder after the "a" package has 
already been created, I presume that a CoreException is thrown.
Comment 2 Philipe Mulet CLA 2002-10-28 08:46:35 EST
Pls investigate
Comment 3 Jerome Lanneluc CLA 2002-10-29 12:13:01 EST
Created attachment 2287 [details]
Contains a regression test for this bug (testDiffererentCasePackageAndClass)

Kent, once this bug is fixed, could you please release the attached tests.
Comment 4 Kent Johnson CLA 2002-11-11 16:31:05 EST
We cannot support packages named 'a' & 'A'. The new test assumes we can.

We receive a ResourceException when we try to create a folder for the second 
package, the message is:
'A resource exists with a different case: /Project/bin/p.'

Possibly we could integrate CoreException error messages with our message.
Comment 5 Jerome Lanneluc CLA 2002-11-11 17:08:31 EST
The idea was to catch and ignore this exception if its code is 
IResourceStatus.CASE_VARIANT_EXISTS.
Comment 6 Kent Johnson CLA 2002-11-11 17:32:43 EST
But we cannot successfully build the example.

The compiler does not consider the 2 packages to be equal. The best we can do 
is improve the error message.
Comment 7 Kent Johnson CLA 2002-11-21 13:07:37 EST
Changed our error message... we now incorporate the CoreException's error 
message so the user has a better idea what the problem was.
Comment 8 David Audel CLA 2002-12-18 05:43:51 EST
Verified.