Bug 173416 - [compiler][batch][options] ecj doesn't support classpath entry starting with [
Summary: [compiler][batch][options] ecj doesn't support classpath entry starting with [
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M6   Edit
Assignee: Maxime Daniel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-08 04:05 EST by David Audel CLA
Modified: 2007-03-20 11:45 EDT (History)
0 users

See Also:


Attachments
Fix + test cases (2.08 KB, patch)
2007-02-08 09:51 EST, Maxime Daniel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2007-02-08 04:05:38 EST
From bug 161996.

This command line 'java -jar ecj.jar -cp [test].jar Hello.java' isn't supported and return the message 'incorrect classpath: [test].jar'.
It works if [ isn't the first character 'java -jar ecj.jar -cp .\[test].jar Hello.java'
Comment 1 Maxime Daniel CLA 2007-02-08 04:29:21 EST
Test case in BatchCompilerTest will be:
public void test139_classpath() {
	String cp = "[a].jar";
	runClasspathTest(
		cp, 
		new String [] {
			cp, null, null,
		},
		null);
}
Problem is that the start state is not singled out on a '[' token.
Comment 2 Maxime Daniel CLA 2007-02-08 09:51:21 EST
Created attachment 58557 [details]
Fix + test cases
Comment 3 Maxime Daniel CLA 2007-02-09 06:18:22 EST
Released for 3.3 M6.
Comment 4 Eric Jodet CLA 2007-03-20 10:09:39 EDT
Verified for 3.3 M6 using build I20070320-0010