提交 57a9cd24 编写于 作者: C chegar

7098755: test/sun/misc/JarIndex/metaInfFilenames/Basic.java should use supported compiler interface

Reviewed-by: mcimadamore
上级 84c2130a
......@@ -154,8 +154,8 @@ public class Basic {
/* run javac <args> */
static void compile(String... args) {
debug("Running: javac " + Arrays.toString(args));
com.sun.tools.javac.main.Main compiler = new com.sun.tools.javac.main.Main("javac");
if (compiler.compile(args) != com.sun.tools.javac.main.Main.Result.OK) {
com.sun.tools.javac.Main compiler = new com.sun.tools.javac.Main();
if (compiler.compile(args) != 0) {
throw new RuntimeException("javac failed: args=" + Arrays.toString(args));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册