langtools/test/tools/javadoc/CompletionError.java
changeset 36778 e04318f39f92
parent 36526 3b41f1c69604
child 44806 d6bdff2ad6f2
equal deleted inserted replaced
36777:28d33fb9097f 36778:e04318f39f92
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    62             }
    62             }
    63             test = 0;
    63             test = 0;
    64             testsDone = false;
    64             testsDone = false;
    65             while (!testsDone) {
    65             while (!testsDone) {
    66                 ToolBox tb = new ToolBox();
    66                 ToolBox tb = new ToolBox();
    67                 tb.new JavacTask()
    67                 new JavacTask(tb)
    68                   .sources(testSource.toString(),
    68                   .sources(testSource.toString(),
    69                            "public class CompletionErrorMissing {}",
    69                            "public class CompletionErrorMissing {}",
    70                            "public interface CompletionErrorIntfMissing {}",
    70                            "public interface CompletionErrorIntfMissing {}",
    71                            "public class CompletionErrorExcMissing extends Exception {}")
    71                            "public class CompletionErrorExcMissing extends Exception {}")
    72                   .outdir(".")
    72                   .outdir(".")