Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2007 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2008 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 24-31
Link Here
|
24 |
|
24 |
|
25 |
import org.eclipse.core.resources.ResourcesPlugin; |
25 |
import org.eclipse.core.resources.ResourcesPlugin; |
26 |
import org.eclipse.jdt.core.JavaCore; |
26 |
import org.eclipse.jdt.core.JavaCore; |
|
|
27 |
import org.eclipse.jdt.core.compiler.CharOperation; |
27 |
import org.eclipse.jdt.core.compiler.InvalidInputException; |
28 |
import org.eclipse.jdt.core.compiler.InvalidInputException; |
28 |
import org.eclipse.jdt.core.tests.util.Util; |
29 |
import org.eclipse.jdt.core.tests.util.Util; |
|
|
30 |
import org.eclipse.jdt.internal.compiler.batch.ClasspathJar; |
29 |
import org.eclipse.jdt.internal.compiler.batch.ClasspathLocation; |
31 |
import org.eclipse.jdt.internal.compiler.batch.ClasspathLocation; |
30 |
import org.eclipse.jdt.internal.compiler.batch.Main; |
32 |
import org.eclipse.jdt.internal.compiler.batch.Main; |
31 |
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; |
33 |
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; |
Lines 7857-7862
Link Here
|
7857 |
"invalid warning option: -warn:null,+unused. Must specify a warning token\n", |
7859 |
"invalid warning option: -warn:null,+unused. Must specify a warning token\n", |
7858 |
true); |
7860 |
true); |
7859 |
} |
7861 |
} |
|
|
7862 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=214731 |
7863 |
// white-box test for internal API |
7864 |
public void test216_batch_classpath_apis() { |
7865 |
assertFalse("path should be absolute", |
7866 |
new ClasspathJar(new File("relative.jar"), true, null, null). |
7867 |
getPath().indexOf(File.separator) == -1); |
7868 |
} |
7869 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=214731 |
7870 |
// white-box test for internal API |
7871 |
public void test217_batch_classpath_apis() { |
7872 |
assertFalse("path should be absolute", |
7873 |
CharOperation.indexOf('/', |
7874 |
new ClasspathJar(new File("relative.jar"), true, null, null). |
7875 |
normalizedPath()) == -1); |
7876 |
} |
7860 |
public static Class testClass() { |
7877 |
public static Class testClass() { |
7861 |
return BatchCompilerTest.class; |
7878 |
return BatchCompilerTest.class; |
7862 |
} |
7879 |
} |