Bug 220542

Summary: Trailing separator in classpath entry lost
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: david_audel
Version: 3.4   
Target Milestone: 3.4 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix and regression test none

Description Jerome Lanneluc CLA 2008-02-27 08:01:06 EST
I20080226-1155

This is a Windows only problem.

If you create a classpath entry to an external folder (using JavaCore.newLibrary(...)) using a path with a trailing separator (e.g. "d:\mylib\"), then the trailing separator is lost if you ask the entry for its path (IClasspathEntry.getPath()).
Comment 1 Jerome Lanneluc CLA 2008-02-27 11:48:07 EST
Created attachment 90887 [details]
Proposed fix and regression test
Comment 2 Jerome Lanneluc CLA 2008-02-27 13:09:30 EST
Fix and test released for 3.4M6
Comment 3 David Audel CLA 2008-03-26 05:30:57 EDT
Verified for 3.4M6 using build I20080324-1300.