JDK-6326773 : Typo in java.sun.com/..../javac.html
  • Type: Bug
  • Status: Closed
  • Resolution: Cannot Reproduce
  • Component: docs
  • Sub-Component: guides
  • Priority: P3
  • Affected Version: 5.0
  • OS: generic
  • CPU: generic
  • Submit Date: 2005-09-21
  • Updated Date: 2011-01-06
  • Resolved Date: 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 Availabitlity Release.

To download the current JDK release, click here.
JDK 7
7Resolved
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.
2011-01-06

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

EVALUATION easy typo fix
2005-10-25