提交 4836aefc 编写于 作者: J jjg

8007492: DocumentationTool cannot locate standard doclet when invoked from JRE

Reviewed-by: darcy
上级 dc3d8854
......@@ -143,8 +143,9 @@ public class JavadocTool implements DocumentationTool {
PrintWriter out_pw = new PrintWriter(out == null ? System.out : out);
try {
String standardDocletName = "com.sun.tools.doclets.standard.Standard";
ClassLoader cl = getClass().getClassLoader();
return com.sun.tools.javadoc.Main.execute(
"javadoc", err_pw, err_pw, out_pw, standardDocletName, arguments);
"javadoc", err_pw, err_pw, out_pw, standardDocletName, cl, arguments);
} finally {
err_pw.flush();
out_pw.flush();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册