[kaffe] a fix in gjdoc

Nektarios K. Papadopoulos npapadop at inaccessnetworks.com
Fri Apr 16 07:21:01 PDT 2004


Hi Dalibor,


It happened to notice a silly a silly error in gjdoc.

[npapadop at sotos kaffe]$ javadoc -help
java.lang.NullPointerException
    at gnu.classpath.tools.gjdoc.Main.start (Main.java:563)
    at gnu.classpath.tools.gjdoc.Main.main (Main.java:477)

while just typing javadoc was working fine:
[npapadop at sotos kaffe]$ javadoc
ERROR: No packages or classes specified.

USAGE: gjdoc [options] [packagenames] [classnames] [@files]

   -doclet <class>         Doclet class to use for generating output
   -sourcepath <pathlist>  Where to look for ...
...
...

I guess, I am the only one who actually types -help instead of just 
passing no arguments ;-).

The attached patch fix this along with another argument parsing issue 
taged FIXME in the original source.

  I am not following classpath mailing lists or cvs so I post the patch 
here. Sorry if this is a problem.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix_gjdoc_Main.diff
Url: http://kaffe.org/pipermail/kaffe/attachments/20040416/cf7fc414/attachment-0002.txt 


More information about the kaffe mailing list