--- a/langtools/test/tools/javac/modules/AbstractOrInnerClassServiceImplTest.java Thu Mar 31 14:56:33 2016 -0700
+++ b/langtools/test/tools/javac/modules/AbstractOrInnerClassServiceImplTest.java Thu Mar 31 15:20:50 2016 -0700
@@ -29,13 +29,17 @@
* jdk.compiler/com.sun.tools.javac.api
* jdk.compiler/com.sun.tools.javac.main
* jdk.jdeps/com.sun.tools.javap
- * @build ToolBox ModuleTestBase
+ * @build toolbox.ToolBox toolbox.JavacTask ModuleTestBase
* @run main AbstractOrInnerClassServiceImplTest
*/
import java.nio.file.Files;
import java.nio.file.Path;
+import toolbox.JavacTask;
+import toolbox.Task;
+import toolbox.ToolBox;
+
public class AbstractOrInnerClassServiceImplTest extends ModuleTestBase {
public static void main(String... args) throws Exception {
AbstractOrInnerClassServiceImplTest t = new AbstractOrInnerClassServiceImplTest();
@@ -52,13 +56,13 @@
Path classes = base.resolve("classes");
Files.createDirectories(classes);
- String log = tb.new JavacTask()
+ String log = new JavacTask(tb)
.options("-XDrawDiagnostics")
.outdir(classes)
.files(findJavaFiles(src))
- .run(ToolBox.Expect.FAIL)
+ .run(Task.Expect.FAIL)
.writeAll()
- .getOutput(ToolBox.OutputKind.DIRECT);
+ .getOutput(Task.OutputKind.DIRECT);
if (!log.contains("module-info.java:1:39: compiler.err.service.implementation.is.abstract: p2.Impl"))
throw new Exception("expected output not found");
}
@@ -73,13 +77,13 @@
Path classes = base.resolve("classes");
Files.createDirectories(classes);
- String log = tb.new JavacTask()
+ String log = new JavacTask(tb)
.options("-XDrawDiagnostics")
.outdir(classes)
.files(findJavaFiles(src))
- .run(ToolBox.Expect.FAIL)
+ .run(Task.Expect.FAIL)
.writeAll()
- .getOutput(ToolBox.OutputKind.DIRECT);
+ .getOutput(Task.OutputKind.DIRECT);
if (!log.contains("module-info.java:1:45: compiler.err.service.implementation.is.inner: p2.Outer.Inner"))
throw new Exception("expected output not found");
}
@@ -94,13 +98,13 @@
Path classes = base.resolve("classes");
Files.createDirectories(classes);
- String log = tb.new JavacTask()
+ String log = new JavacTask(tb)
.options("-XDrawDiagnostics")
.outdir(classes)
.files(findJavaFiles(src))
- .run(ToolBox.Expect.FAIL)
+ .run(Task.Expect.FAIL)
.writeAll()
- .getOutput(ToolBox.OutputKind.DIRECT);
+ .getOutput(Task.OutputKind.DIRECT);
if (!log.contains("module-info.java:1:45: compiler.err.service.implementation.is.abstract: p2.Outer.Inner"))
throw new Exception("expected output not found");
}