Bug 22517 - Cannot create type X in project Test if d:\test\X.java exists
Summary: Cannot create type X in project Test if d:\test\X.java exists
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 22942 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-19 07:13 EDT by Jerome Lanneluc CLA
Modified: 2002-09-19 06:57 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2002-08-19 07:13:06 EDT
Build 200208150800 (2.0.1)

1. Create file d:\test\X.java
2. Startup new workspace in d:\workspace
3. Create project 'Test'
4. In default package, bring up class wizard
5. Enter X as the class name.
Observe: Wizard says that type X already exists
Comment 1 Jerome Lanneluc CLA 2002-08-19 07:16:25 EDT
JavaModel.getTarget(IContainer, IPath, boolean) returns true if container is 
workspace root, and path is '/Test/X.java'.
Comment 2 Jerome Lanneluc CLA 2002-08-19 07:36:05 EDT
Bug already existed in 2.0
Comment 3 Jerome Lanneluc CLA 2002-08-30 08:13:22 EDT
Changed getTarget() to consider that a relative path is only internal and 
changed resourceExists() to make the path relative except in the case of an 
external package fragment root.
Comment 4 Jerome Lanneluc CLA 2002-08-30 08:17:22 EDT
*** Bug 22942 has been marked as a duplicate of this bug. ***
Comment 5 David Audel CLA 2002-09-19 06:57:54 EDT
Verified.