JDK-4934867 : javadoc -help generates runtime exception
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2003-10-09
  • Updated: 2014-05-05
  • Resolved: 2003-10-09
Related Reports
Duplicate :  
Description
Here is the self-explanatory shell transcript

$ javadoc -help
usage: javadoc [options] [packagenames] [sourcefiles] [classnames] [@files]
-overview <file>          Read overview documentation from HTML file
-public                   Show only public classes and members
-protected                Show protected/public classes and members (default)
-package                  Show package/protected/public classes and members
-private                  Show all classes and members
-help                     Display command line options and exit
-doclet <class>           Generate output via alternate doclet
-docletpath <path>        Specify where to find doclet class files
-sourcepath <pathlist>    Specify where to find source files
-classpath <pathlist>     Specify where to find user class files
-exclude <pkglist>        Specify a list of packages to exclude
-subpackages <subpkglist> Specify subpackages to recursively load
-breakiterator            Compute 1st sentence with BreakIterator
-bootclasspath <pathlist> Override location of class files loaded
			  by the bootstrap class loader
-source <release>         Provide source compatibility with specified release
-extdirs <dirlist>        Override location of installed extensions
-verbose                  Output messages about what Javadoc is doing
-locale <name>            Locale to be used, e.g. en_US or en_US_WIN
-encoding <name>          Source file encoding name
-J<flag>                  Pass <flag> directly to the runtime system

javadoc: In doclet class com.sun.tools.doclets.standard.Standard,  method optionLength has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NullPointerException
	at com.sun.tools.doclets.internal.toolkit.util.MessageRetriever.printNotice(MessageRetriever.java:190)
	at com.sun.tools.doclets.internal.toolkit.util.MessageRetriever.notice(MessageRetriever.java:386)
	at com.sun.tools.doclets.formats.html.ConfigurationImpl.optionLength(ConfigurationImpl.java:291)
	at com.sun.tools.doclets.formats.html.HtmlDoclet.optionLength(HtmlDoclet.java:202)
	at com.sun.tools.doclets.standard.Standard.optionLength(Standard.java:12)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:209)
	at com.sun.tools.javadoc.DocletInvoker.optionLength(DocletInvoker.java:115)
	at com.sun.tools.javadoc.Start.usage(Start.java:108)
	at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:204)
	at com.sun.tools.javadoc.Start.begin(Start.java:127)
	at com.sun.tools.javadoc.Main.execute(Main.java:41)
	at com.sun.tools.javadoc.Main.main(Main.java:31)
1 error

###@###.### 2003-10-08