mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8054500
: Refactor sjavac Main class into ClientMain and ServerMain
Restructured Main into ClientMain and ServerMain Reviewed-by: jfranck
This commit is contained in:
parent
5f800435e3
commit
43eb10bcb8
8 changed files with 406 additions and 437 deletions
|
@ -73,9 +73,8 @@ public class IgnoreSymbolFile {
|
|||
// Use reflection to avoid a compile-time dependency on sjavac Main
|
||||
System.err.println("compile: " + Arrays.toString(args));
|
||||
Class<?> c = Class.forName("com.sun.tools.sjavac.Main");
|
||||
Method m = c.getDeclaredMethod("go", String[].class, PrintStream.class, PrintStream.class);
|
||||
Object sjavac = c.newInstance();
|
||||
int rc = (Integer) m.invoke(sjavac, args, System.err, System.err);
|
||||
Method m = c.getDeclaredMethod("go", String[].class);
|
||||
int rc = (Integer) m.invoke(null, (Object) args);
|
||||
System.err.println("rc=" + rc);
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue