JDK-6968833 : javadoc reports error but still returns 0
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2010-07-13
  • Updated: 2010-10-11
  • Resolved: 2010-10-11
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
7Resolved
Related Reports
Duplicate :  
Description
If there are no public or protected class found by javadoc, it reports this as an error but returns 0.

Foo.java:
class Foo { }

javadoc Foo.java
Loading source file Foo.java...
Constructing Javadoc information...
javadoc: error - No public or protected classes found to document.

return value is 0, does not match the fact that an error was reported.
Maybe this should be a warning, or it should return non-zero.