mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8165109: langtools/test switches to use new CLI options
Reviewed-by: jjg, amlu
This commit is contained in:
parent
8120ff3110
commit
2a62da3a63
15 changed files with 35 additions and 35 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue