Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4099527
Votes 1
Synopsis javadoc tool: want flag to exit nonzero if there were warnings.
Category java:javadoctool
Reported Against 1.1.5
Release Fixed 1.4.2(mantis)
State 10-Fix Delivered, request for enhancement
Priority: 5-Very Low
Related Bugs
Submit Date 15-DEC-1997
Description
The new javadoc flag

	-Xwerror

causes javadoc to exit with a nonzero status if there were any warnings
displayed during the javadoc run.  Without this option, only errors cause a
nonzero exit.Javadoc should exit with a non-zero code if any warning/error messages are 
generated about doc comments defining but not documenting exceptions etc.
This would make it easier to know about such problems in driver programs
like "make", and hence make such javadoc errors be taken more seriously.
Work Around
N/A
Evaluation
This would cause make to abort - this is too severe.
 xxxxx@xxxxx  1998-01-20

Changed from RFE to a bug.
 xxxxx@xxxxx  1998-04-03

javadoc does exit with exit status of one if there are any
errors.  This request is to add the option of setting the
exit status for warnings.  This would be fairly easy to
do but should not be the default behavior, and is definitely
an RFE. Changed back to an RFE.
 xxxxx@xxxxx  2000-02-10

A reasonable request.

 xxxxx@xxxxx  2001-03-06

The flag

	-Xwerror

will be available in some future version.

 xxxxx@xxxxx  2002-10-24
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang