JDK-6326773 : Typo in java.sun.com/..../javac.html
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2005-09-21
  • Updated: 2011-01-06
  • Resolved: 2011-01-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 Other
7Resolved OpenJDK6Fixed
Related Reports
Relates :  
Description
Typo in java.sun.com, but significant. 
javac.html says as -Xmaxerrors but compiler says it as -Xmaxerrs.

Please see the URL
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html
it says
<java.sun.com>
.
.
-Xmaxerrors number
    Set the maximum number of errors to print.
..
.
.
</java.sun.com>

But the compiler says
<compiler>
bash-3.00$ /net/sqindia/export/disk09/jdk/1.5.0/rc/b63/binaries/solsparc/bin/javac -X
  -Xlint                     Enable recommended warnings
  -Xlint:{all,deprecation,unchecked,fallthrough,path,serial,finally,-deprecation,-unchecked,-fallthrough,-path,-serial,-finally}Enable or disable specific warnings
  -Xbootclasspath/p:<path>   Prepend to the bootstrap class path
  -Xbootclasspath/a:<path>   Append to the bootstrap class path
  -Xbootclasspath:<path>     Override location of bootstrap class files
  -Djava.ext.dirs=<dirs>     Override location of installed extensions
  -Djava.endorsed.dirs=<dirs>Override location of endorsed standards path
  -Xmaxerrs <number>         Set the maximum number of errors to print
  -Xmaxwarns <number>        Set the maximum number of warnings to print
  -Xstdout <filename>        Redirect standard output

These options are non-standard and subject to change without notice.
</compiler>

Comments
EVALUATION Verified fixed in public docs for 5 and 6, and in pubs repo for 7.
06-01-2011

EVALUATION Although being an easy typo to fix, this was missed in the recent review by engineering.
26-08-2006

EVALUATION easy typo fix
25-10-2005