langtools/test/tools/javadoc/CompletionError.java
changeset 36778 e04318f39f92
parent 36526 3b41f1c69604
child 44806 d6bdff2ad6f2
--- a/langtools/test/tools/javadoc/CompletionError.java	Thu Mar 31 14:56:33 2016 -0700
+++ b/langtools/test/tools/javadoc/CompletionError.java	Thu Mar 31 15:20:50 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 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
@@ -64,7 +64,7 @@
             testsDone = false;
             while (!testsDone) {
                 ToolBox tb = new ToolBox();
-                tb.new JavacTask()
+                new JavacTask(tb)
                   .sources(testSource.toString(),
                            "public class CompletionErrorMissing {}",
                            "public interface CompletionErrorIntfMissing {}",