langtools/test/tools/javac/T8024039/NoDeadCodeGenerationOnTrySmtTest.java
changeset 36778 e04318f39f92
parent 36526 3b41f1c69604
--- a/langtools/test/tools/javac/T8024039/NoDeadCodeGenerationOnTrySmtTest.java	Thu Mar 31 14:56:33 2016 -0700
+++ b/langtools/test/tools/javac/T8024039/NoDeadCodeGenerationOnTrySmtTest.java	Thu Mar 31 15:20:50 2016 -0700
@@ -27,12 +27,10 @@
  * @summary javac, previous solution for JDK-8022186 was incorrect
  * @library /tools/lib
  * @modules jdk.compiler/com.sun.tools.javac.api
- *          jdk.compiler/com.sun.tools.javac.file
  *          jdk.compiler/com.sun.tools.javac.main
  *          jdk.compiler/com.sun.tools.javac.util
  *          jdk.jdeps/com.sun.tools.classfile
- *          jdk.jdeps/com.sun.tools.javap
- * @build ToolBox
+ * @build toolbox.ToolBox toolbox.JavacTask
  * @run main NoDeadCodeGenerationOnTrySmtTest
  */
 
@@ -45,6 +43,9 @@
 import com.sun.tools.classfile.Method;
 import com.sun.tools.javac.util.Assert;
 
+import toolbox.JavacTask;
+import toolbox.ToolBox;
+
 public class NoDeadCodeGenerationOnTrySmtTest {
 
     static final String testSource =
@@ -93,7 +94,7 @@
     }
 
     void compileTestClass() throws Exception {
-        tb.new JavacTask()
+        new JavacTask(tb)
                 .sources(testSource)
                 .run();
     }