Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311418

Summary: [search] canonicalizedPath() method in JavaProject produces wrong path on Linux
Product: [WebTools] JSDT Reporter: Chris Jaun <cmjaun>
Component: GeneralAssignee: Chris Jaun <cmjaun>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 Flags: thatnitind: review+
Version: 3.2   
Target Milestone: 3.2 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch none

Description Chris Jaun CLA 2010-05-03 15:02:45 EDT
The canonicalizedPath() method in JavaProject returns the "externalPath" attribute if the IS_CASE_SENSITIVE flag is set to true, which seems to be happening on linux.

This sometimes results in a trailing slash being left on the path string, which screws up values in the index later end causing search to fail.
Comment 1 Chris Jaun CLA 2010-05-03 15:09:21 EDT
Created attachment 166851 [details]
patch
Comment 2 Chris Jaun CLA 2010-05-04 10:04:42 EDT
Patch checked in.