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

javadoc should support -version and/or --version

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 10
    • tools
    • None
    • low
    • Adding new option, there are no compatibility issues.
    • add/remove/modify command line option
    • JDK

      Summary

      Provide a --version option for the javadoc tool.

      Problem

      Although the javadoc tool provides a -version option, that is a flag to indicate whether the generated documents should include the version of the API being documented, from the @version tags. There has never been a flag to obtain the tool version itself.

      Solution

      With the introduction of -- options in JDK 9, --version can be provided to output the version information of the tool.

      Specification

      When --version is used, javadoc will report the version of the tool and exit.

            pmuthuswamy Priya Lakshmi Muthuswamy (Inactive)
            martin Martin Buchholz
            Alan Bateman, Jonathan Gibbons, Kumar Srinivasan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: