langtools/test/tools/javac/modules/ModuleTestBase.java
changeset 36778 e04318f39f92
parent 36526 3b41f1c69604
child 37758 3ecf9b414e05
--- a/langtools/test/tools/javac/modules/ModuleTestBase.java	Thu Mar 31 14:56:33 2016 -0700
+++ b/langtools/test/tools/javac/modules/ModuleTestBase.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
@@ -42,6 +42,9 @@
 import java.util.TreeSet;
 import java.util.stream.Collectors;
 
+import toolbox.JavacTask;
+import toolbox.ToolBox;
+
 /**
  * Base class for module tests.
  */
@@ -175,7 +178,7 @@
 
         public void build(Path where) throws IOException {
             Path moduleSrc = write(where);
-            tb.new JavacTask()
+            new JavacTask(tb)
                     .outdir(where.resolve(name))
                     .options("-mp", modulePath)
                     .files(findJavaFiles(moduleSrc))