javadoc command displays the usage with error

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 6
    • Component/s: tools

      javadoc command displays the usage with error

      Tested OS : All
      Tested Build : Mustang promoted build 43

      Steps to reproduce :

      1. Install any mustang build 43
      2. Go to jdk1.6.0/bin folder
      3. Launch ./javadoc

      It displays javadoc usage

      jlab403:/home/mn150763 143 % ./javadoc
      javadoc: error - No packages or classes specified.
      usage: javadoc [options] [packagenames] [sourcefiles] [@files]
      -overview <file> Read overview documentation from HTML file
      -public Show only public classes and members
      .
      .
      .
      .
      -stylesheetfile <path> File to change style of the generated documentation
      -docencoding <name> Output encoding name
      1 error
      jlab403:/home/mn150763 144 %

      It can be noticed that "1 error" displayed at the end of the usage

      Expected Behaviour : It would be better if it prints only the usage.
      Note: In jdk, none of the tools usage prints "1 error"
      ###@###.### 2005-07-21 07:35:42 GMT

            Assignee:
            Bhavesh Patel (Inactive)
            Reporter:
            Malathi Narayanan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: