Bug 220542 - Trailing separator in classpath entry lost
Summary: Trailing separator in classpath entry lost
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-27 08:01 EST by Jerome Lanneluc CLA
Modified: 2008-03-26 05:30 EDT (History)
1 user (show)

See Also:


Attachments
Proposed fix and regression test (3.01 KB, patch)
2008-02-27 11:48 EST, Jerome Lanneluc CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.