View | Details | Raw Unified | Return to bug 173416
Collapse All | Expand All

(-)batch/org/eclipse/jdt/internal/compiler/batch/Main.java (+2 lines)
Lines 3142-3147 Link Here
3142
			}
3142
			}
3143
		} else if (token.equals("[")) { //$NON-NLS-1$
3143
		} else if (token.equals("[")) { //$NON-NLS-1$
3144
			switch (state) {
3144
			switch (state) {
3145
			case start:
3146
				currentClasspathName = ""; //$NON-NLS-1$
3145
			case readyToClose:
3147
			case readyToClose:
3146
				bracket = cursor - 1;
3148
				bracket = cursor - 1;
3147
			case bracketClosed:
3149
			case bracketClosed:
(-)src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java (+22 lines)
Lines 5164-5169 Link Here
5164
		null,
5164
		null,
5165
		null);
5165
		null);
5166
}
5166
}
5167
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=173416
5168
// start with a bracket
5169
public void test139_classpath() {
5170
    String cp = "[a].jar";
5171
    runClasspathTest(
5172
        cp, 
5173
        new String [] {
5174
            cp, null, null,
5175
        },
5176
        null);
5177
}
5178
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=173416
5179
// start with a bracket
5180
public void test140_classpath() {
5181
    String cp = "[a].jar";
5182
    runClasspathTest(
5183
        cp + "[~**/internal/*][-d dir]", 
5184
        new String [] {
5185
            cp, "{pattern=**/internal/* (DISCOURAGED)}", "dir",
5186
        },
5187
        null);
5188
}
5167
public static Class testClass() {
5189
public static Class testClass() {
5168
	return BatchCompilerTest.class;
5190
	return BatchCompilerTest.class;
5169
}
5191
}

Return to bug 173416