changeset 1543:62d91c13dce2

8007492: DocumentationTool cannot locate standard doclet when invoked from JRE Reviewed-by: darcy
author jjg
date Mon, 04 Feb 2013 18:14:24 -0800
parents 1690928dc560
children 10619513f51a
files src/share/classes/com/sun/tools/javadoc/api/JavadocTool.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javadoc/api/JavadocTool.java	Mon Feb 04 15:30:10 2013 -0800
+++ b/src/share/classes/com/sun/tools/javadoc/api/JavadocTool.java	Mon Feb 04 18:14:24 2013 -0800
@@ -143,8 +143,9 @@
         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();