Bug 105430

Summary: ecj chokes when classpath has leading separator
Product: [Eclipse Project] JDT Reporter: Gary Benson <gbenson>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: philippe_mulet
Version: 3.1   
Target Milestone: 3.1.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Fix none

Description Gary Benson CLA 2005-07-28 06:48:30 EDT
The new classpath parser in ecj can't cope with classpaths with leading
separators.  I can't find any documentation as to whether this is valid or not,
but I've seen it used several times, and other Java compilers accept it.

The attached patch fixes.
Comment 1 Gary Benson CLA 2005-07-28 06:49:09 EDT
Created attachment 25406 [details]
Fix
Comment 2 Olivier Thomann CLA 2005-07-28 08:07:59 EDT
Philippe, this would be a candidate for 3.1.1.
Comment 3 Olivier Thomann CLA 2005-07-28 12:37:49 EDT
Fixed and released in HEAD.
Regression test added in
org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.test034
Comment 4 Philipe Mulet CLA 2005-07-28 18:28:56 EDT
+1 for 3.1.1
Comment 5 Jerome Lanneluc CLA 2005-08-11 10:35:17 EDT
Verified with 3.2 M1
Comment 6 Maxime Daniel CLA 2005-09-21 08:52:49 EDT
Verified for 3.2 M2 on build: I20050920-0010.
Comment 7 Olivier Thomann CLA 2005-09-26 13:28:10 EDT
Backported to 3.1 maintenance.
Regression test added in
org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest.test034
Comment 8 Olivier Thomann CLA 2005-09-27 15:32:21 EDT
Verified in  M20050923-1430 + JDT/Core 3.1.1RC3 candidate