8165109: langtools/test switches to use new CLI options

Reviewed-by: jjg, amlu
This commit is contained in:
Mandy Chung 2016-08-30 20:49:41 -07:00
parent 8120ff3110
commit 2a62da3a63
15 changed files with 35 additions and 35 deletions

View file

@ -255,7 +255,7 @@ public class ElementStructureTest {
}
void run(Writer output, String version) throws Exception {
List<String> options = Arrays.asList("-release", version, "-classpath", "");
List<String> options = Arrays.asList("--release", version, "-classpath", "");
List<ToolBox.JavaSource> files = Arrays.asList(new ToolBox.JavaSource("Test", ""));
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
JavacTaskImpl task = (JavacTaskImpl) compiler.getTask(null, null, null, options, null, files);