test/langtools/jdk/javadoc/tool/api/basic/RunTest.java
author phh
Sat, 30 Nov 2019 14:33:05 -0800
changeset 59330 5b96c12f909d
parent 47216 71c04702a3d5
permissions -rw-r--r--
8234541: C1 emits an empty message when it inlines successfully Summary: Use "inline" as the message when successfull Reviewed-by: thartmann, mdoerr Contributed-by: navy.xliu@gmail.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14545
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
     1
/*
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 15566
diff changeset
     2
 * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
14545
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
     4
 *
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
     8
 *
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    13
 * accompanied this code).
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    14
 *
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    18
 *
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    21
 * questions.
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    22
 */
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    23
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    24
/*
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    25
 * @test
15566
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
    26
 * @bug 6493690 8007490
14545
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    27
 * @summary javadoc should have a javax.tools.Tool service provider
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 15566
diff changeset
    28
 * @modules java.compiler
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 15566
diff changeset
    29
 *          jdk.compiler
14545
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    30
 * @build APITest
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    31
 * @run main RunTest
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    32
 */
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    33
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    34
import java.io.ByteArrayOutputStream;
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    35
import java.io.File;
15566
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
    36
import java.io.PrintStream;
14545
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    37
import javax.tools.DocumentationTool;
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    38
import javax.tools.ToolProvider;
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    39
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    40
/**
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    41
 * Tests for DocumentationTool.run method.
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    42
 */
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    43
public class RunTest extends APITest {
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    44
    public static void main(String... args) throws Exception {
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    45
        new RunTest().run();
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    46
    }
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    47
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    48
    /**
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    49
     * Verify that run method can be invoked.
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    50
     */
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 30730
diff changeset
    51
//    @Test
15566
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
    52
    public void testRunOK() throws Exception {
14545
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    53
        File testSrc = new File(System.getProperty("test.src"));
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    54
        File srcFile = new File(testSrc, "pkg/C.java");
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    55
        File outDir = getOutDir();
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    56
        String[] args = { "-d", outDir.getPath(), srcFile.getPath() };
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    57
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    58
        ByteArrayOutputStream stdout = new ByteArrayOutputStream();
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    59
        ByteArrayOutputStream stderr = new ByteArrayOutputStream();
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    60
        DocumentationTool tool = ToolProvider.getSystemDocumentationTool();
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    61
        int rc = tool.run(null, stdout, stderr, args);
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    62
        System.err.println("stdout >>" + stdout.toString() + "<<");
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    63
        System.err.println("stderr >>" + stderr.toString() + "<<");
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    64
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    65
        if (rc == 0) {
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    66
            System.err.println("call succeeded");
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    67
            checkFiles(outDir, standardExpectFiles);
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    68
            String out = stdout.toString();
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    69
            for (String f: standardExpectFiles) {
14552
0512d803a331 8003650: java.lang.Exception: expected string not found: pkg/package-frame.html
jjg
parents: 14545
diff changeset
    70
                String f1 = f.replace('/', File.separatorChar);
0512d803a331 8003650: java.lang.Exception: expected string not found: pkg/package-frame.html
jjg
parents: 14545
diff changeset
    71
                if (f1.endsWith(".html") && !out.contains(f1))
0512d803a331 8003650: java.lang.Exception: expected string not found: pkg/package-frame.html
jjg
parents: 14545
diff changeset
    72
                    error("expected string not found: " + f1);
14545
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    73
            }
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    74
        } else {
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    75
            error("call failed");
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    76
        }
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    77
    }
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    78
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    79
    /**
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    80
     * Verify that run method can be invoked.
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    81
     */
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    82
    @Test
15566
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
    83
    public void testRunFail() throws Exception {
14545
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    84
        File outDir = getOutDir();
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    85
        String badfile = "badfile.java";
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    86
        String[] args = { "-d", outDir.getPath(), badfile };
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    87
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    88
        ByteArrayOutputStream stdout = new ByteArrayOutputStream();
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    89
        ByteArrayOutputStream stderr = new ByteArrayOutputStream();
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    90
        DocumentationTool tool = ToolProvider.getSystemDocumentationTool();
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    91
        int rc = tool.run(null, stdout, stderr, args);
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    92
        System.err.println("stdout >>" + stdout.toString() + "<<");
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    93
        System.err.println("stderr >>" + stderr.toString() + "<<");
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    94
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    95
        if (rc == 0) {
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    96
            error("call succeeded unexpectedly");
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    97
        } else {
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    98
            String err = stderr.toString();
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
    99
            if (err.contains(badfile))
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
   100
                System.err.println("call failed as expected");
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
   101
            else
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
   102
                error("expected diagnostic not found");
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
   103
        }
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
   104
    }
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
   105
15566
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   106
    /**
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   107
     * Verify that null args are accepted.
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   108
     */
35426
374342e56a56 8035473: [javadoc] Revamp the existing Doclet APIs
ksrini
parents: 30730
diff changeset
   109
//    @Test
15566
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   110
    public void testNullArgs() throws Exception {
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   111
        File testSrc = new File(System.getProperty("test.src"));
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   112
        File srcFile = new File(testSrc, "pkg/C.java");
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   113
        File outDir = getOutDir();
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   114
        String[] args = { "-d", outDir.getPath(), srcFile.getPath() };
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   115
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   116
        ByteArrayOutputStream stdout = new ByteArrayOutputStream();
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   117
        PrintStream prevStdout = System.out;
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   118
        System.setOut(new PrintStream(stdout));
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   119
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   120
        ByteArrayOutputStream stderr = new ByteArrayOutputStream();
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   121
        PrintStream prevStderr = System.err;
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   122
        System.setErr(new PrintStream(stderr));
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   123
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   124
        int rc ;
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   125
        try {
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   126
            DocumentationTool tool = ToolProvider.getSystemDocumentationTool();
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   127
            rc = tool.run(null, null, null, args);
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   128
        } finally {
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   129
            System.setOut(prevStdout);
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   130
            System.setErr(prevStderr);
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   131
        }
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   132
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   133
        System.err.println("stdout >>" + stdout.toString() + "<<");
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   134
        System.err.println("stderr >>" + stderr.toString() + "<<");
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   135
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   136
        if (rc == 0) {
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   137
            System.err.println("call succeeded");
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   138
            checkFiles(outDir, standardExpectFiles);
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   139
            String out = stdout.toString();
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   140
            for (String f: standardExpectFiles) {
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   141
                String f1 = f.replace('/', File.separatorChar);
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   142
                if (f1.endsWith(".html") && !out.contains(f1))
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   143
                    error("expected string not found: " + f1);
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   144
            }
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   145
        } else {
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   146
            error("call failed");
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   147
        }
2c686ad681f5 8007490: NPE from DocumentationTool.run
jjg
parents: 14552
diff changeset
   148
    }
14545
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
   149
}
2e7bab0639b8 6493690: javadoc should have a javax.tools.Tool service provider installed in tools.jar
jjg
parents:
diff changeset
   150