7098755: test/sun/misc/JarIndex/metaInfFilenames/Basic.java should use supported compiler interface
Reviewed-by: mcimadamore
This commit is contained in:
parent
214254cac5
commit
e92787f075
@ -154,8 +154,8 @@ public class Basic {
|
|||||||
/* run javac <args> */
|
/* run javac <args> */
|
||||||
static void compile(String... args) {
|
static void compile(String... args) {
|
||||||
debug("Running: javac " + Arrays.toString(args));
|
debug("Running: javac " + Arrays.toString(args));
|
||||||
com.sun.tools.javac.main.Main compiler = new com.sun.tools.javac.main.Main("javac");
|
com.sun.tools.javac.Main compiler = new com.sun.tools.javac.Main();
|
||||||
if (compiler.compile(args) != com.sun.tools.javac.main.Main.Result.OK) {
|
if (compiler.compile(args) != 0) {
|
||||||
throw new RuntimeException("javac failed: args=" + Arrays.toString(args));
|
throw new RuntimeException("javac failed: args=" + Arrays.toString(args));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user