8243417: Clean up com.sun.tools.javac.main.CommandLine

Reviewed-by: prappo
This commit is contained in:
Jonathan Gibbons 2020-05-13 10:39:35 -07:00
parent 3d50f242c2
commit 49bfbd3bc7
6 changed files with 21 additions and 36 deletions

View file

@ -341,13 +341,14 @@ public class Start {
@SuppressWarnings("deprecation")
Result begin(String... argv) {
// Preprocess @file arguments
List<String> allArgs;
try {
argv = CommandLine.parse(argv);
allArgs = CommandLine.parse(List.of(argv));
} catch (IOException e) {
error("main.cant.read", e.getMessage());
return ERROR;
}
return begin(Arrays.asList(argv), Collections.emptySet());
return begin(allArgs, Collections.emptySet());
}
// Called by the JSR 199 API