javadoc ignores -XD-Xmaxerrs

Martin Buchholz martinrb at google.com
Fri Jun 4 18:07:04 PDT 2010


Hi javadoc team,

This is a bug report with proposed fix.

We have reason to believe that javadoc was designed
to accept javac flags like -Xmaxerrs via

javadoc -XD-Xmaxerrs=NNNN ....

However,

this is not documented, except via 'javac -X'
javadoc should also really have a -X flag
that documents its "nonstandard" -Xxxx flags.

The -XD-Xmaxerrs=NNNN flag is not recognized
because the Messager in
src/share/classes/com/sun/tools/javadoc/Start.java
is created before the options are parsed.

Here's a fix that works for us, but it seems likely that
there is an architecturally cleaner fix:

http://cr.openjdk.java.net/~martin/webrevs/openjdk7/javadoc-Xmaxerrs/

Martin



More information about the compiler-dev mailing list