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

javadoc command displays the usage with error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 6
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: