United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6326773 Typo in java.sun.com/..../javac.html
JDK-6326773 : Typo in java.sun.com/..../javac.html

Details
Type:
Bug
Submit Date:
2005-09-21
Status:
Closed
Updated Date:
2011-01-06
Project Name:
JDK
Resolved Date:
2011-01-06
Component:
docs
OS:
generic
Sub-Component:
guides
CPU:
generic
Priority:
P3
Resolution:
Cannot Reproduce
Affected Versions:
5.0
Fixed Versions:
7

Related Reports
Backport:
Relates:

Sub Tasks

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

easy typo fix
                                     
2005-10-25
EVALUATION

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

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



Hardware and Software, Engineered to Work Together