7094141: test/sun/misc/JarIndex/metaInfFilenames/Basic.java no longer compiles
authorchegar
Mon, 26 Sep 2011 15:04:59 +0100
changeset 10612 841791b02746
parent 10611 3a8a66de0892
child 10613 00e3c10b042b
child 10693 6e9ebed2e783
7094141: test/sun/misc/JarIndex/metaInfFilenames/Basic.java no longer compiles Reviewed-by: alanb
jdk/test/sun/misc/JarIndex/metaInfFilenames/Basic.java
--- a/jdk/test/sun/misc/JarIndex/metaInfFilenames/Basic.java	Mon Sep 26 17:13:47 2011 +0800
+++ b/jdk/test/sun/misc/JarIndex/metaInfFilenames/Basic.java	Mon Sep 26 15:04:59 2011 +0100
@@ -155,7 +155,7 @@
     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));
         }
     }