mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8243417: Clean up com.sun.tools.javac.main.CommandLine
Reviewed-by: prappo
This commit is contained in:
parent
3d50f242c2
commit
49bfbd3bc7
6 changed files with 21 additions and 36 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue