7094141: test/sun/misc/JarIndex/metaInfFilenames/Basic.java no longer compiles

Reviewed-by: alanb
This commit is contained in:
Chris Hegarty 2011-09-26 15:04:59 +01:00
parent 0ac639e5b0
commit 2d492ea7e1

View File

@ -155,7 +155,7 @@ public class Basic {
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) != 0) {
if (compiler.compile(args) != com.sun.tools.javac.main.Main.Result.OK) {
throw new RuntimeException("javac failed: args=" + Arrays.toString(args));
}
}