Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6968833

javadoc reports error but still returns 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 7
    • 7
    • tools

      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.

            jjg Jonathan Gibbons
            ssides Steve Sides
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: