Bug 249321

Summary: IPackagerFragmentRoot#getRawClasspathEntry() returns resolved ".." path
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.4   
Target Milestone: 3.5 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix and regression test none

Description Jerome Lanneluc CLA 2008-10-01 10:05:15 EDT
I20080930-0921

1. New workspace
2. New Java Project
3. Edit .classpath to add a ".." lib entry (pointing at an existing library), e.g.
	<classpathentry kind="lib" path="../../test/JUnit "/>
4. In Package Explorer, select the library under Referenced Library
5. Build path > Remove from buildpath
Observe: The entry is not removed.

This is because IPackagerFragmentRoot#getRawClasspathEntry() returns an entry with a reolved path (e.g. "D:/eclipse/dev/test/JUnit")
Comment 1 Jerome Lanneluc CLA 2008-10-01 10:58:30 EDT
Created attachment 113999 [details]
Proposed fix and regression test
Comment 2 Jerome Lanneluc CLA 2008-10-01 12:06:09 EDT
Note with this fix, I'm getting an IOBE in JDT/UI. See bug 249342.
Comment 3 Jerome Lanneluc CLA 2008-10-01 12:34:22 EDT
Bug 249342 has nothing to do with ".." path.

Fix and test released for 3.5M3
Comment 4 Olivier Thomann CLA 2008-10-27 15:54:39 EDT
Verified for 3.5M3 using I20081026-2000