langtools/test/tools/javac/T7008643/InlinedFinallyConfuseDebuggersTest.java
changeset 36778 e04318f39f92
parent 36526 3b41f1c69604
child 45220 7c775294b6f1
--- a/langtools/test/tools/javac/T7008643/InlinedFinallyConfuseDebuggersTest.java	Thu Mar 31 14:56:33 2016 -0700
+++ b/langtools/test/tools/javac/T7008643/InlinedFinallyConfuseDebuggersTest.java	Thu Mar 31 15:20:50 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -28,11 +28,10 @@
  * @library /tools/lib
  * @modules jdk.jdeps/com.sun.tools.classfile
  *          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.javap
- * @build ToolBox
+ * @build toolbox.ToolBox toolbox.JavacTask
  * @run main InlinedFinallyConfuseDebuggersTest
  */
 
@@ -45,6 +44,9 @@
 import com.sun.tools.classfile.Method;
 import com.sun.tools.javac.util.Assert;
 
+import toolbox.JavacTask;
+import toolbox.ToolBox;
+
 public class InlinedFinallyConfuseDebuggersTest {
 
     static final String testSource =
@@ -88,7 +90,7 @@
     }
 
     void compileTestClass() throws Exception {
-        tb.new JavacTask()
+        new JavacTask(tb)
                 .sources(testSource)
                 .run();
     }