javadoc should support -version and/or --version

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 10
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: