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

Provide a new comment tag to specify the summary of an API description.

    XMLWordPrintable

Details

    • CSR
    • Resolution: Approved
    • P3
    • 10
    • tools
    • None
    • minimal
    • Hide
      The new tag is optional, and need not be used unless desired.

      Show
      The new tag is optional, and need not be used unless desired.
    • Java API, File or wire format
    • JDK

    Description

      Summary

      Provide a new comment tag to specify the summary of an API description.

      Problem

      Currently, the standard doclet treats the first sentence of an API description as a summary that can be used in various places in the documentation. The first sentence is currently inferred using either a simple algorithm or java.text.BreakIterator. The heuristics are not always correct, and so it would be convenient to be able to explicitly specify the text to be used as the summary of the API description.

      Solution

      Introduce a new comment tag @summary whose content will be used as the summary of the API description.

      Specification

      The specdiffs are attached for the record, but for convenience here are the web links to the specs:

      Compile Tree APIs changes: http://cr.openjdk.java.net/~ksrini/8173425/specdiff.dir/tree-spec/overview-summary.html

      Comment tag specification: http://cr.openjdk.java.net/~ksrini/8173425/specdiff.dir/doc-comment-spec/diff.html

      Attachments

        Issue Links

          Activity

            People

              ksrini Kumar Srinivasan
              ksrini Kumar Srinivasan
              Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: