7098755: test/sun/misc/JarIndex/metaInfFilenames/Basic.java should use supported compiler interface
authorchegar
Mon, 10 Oct 2011 15:29:24 +0100
changeset 10705 c059c562bad2
parent 10704 db5816a6e8c7
child 10707 7de027b93fee
7098755: test/sun/misc/JarIndex/metaInfFilenames/Basic.java should use supported compiler interface Reviewed-by: mcimadamore
jdk/test/sun/misc/JarIndex/metaInfFilenames/Basic.java
--- a/jdk/test/sun/misc/JarIndex/metaInfFilenames/Basic.java	Mon Oct 10 10:38:35 2011 +0100
+++ b/jdk/test/sun/misc/JarIndex/metaInfFilenames/Basic.java	Mon Oct 10 15:29:24 2011 +0100
@@ -154,8 +154,8 @@
     /* 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));
         }
     }