Specify how positional arguments are separated

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P4
    • 20
    • Affects Version/s: 17, 18
    • Component/s: tools

      Whitespace is used to separate arguments in JavaDoc tags. However, whether or not a particular occurrence of a whitespace character splits an argument into two arguments depends on the context. In the context of references, for example, whitespace inside parentheses does not separate arguments, whereas outside of parentheses it does. So this tag has the reference `Object#wait(long timeoutMillis, int nanos)`:

          {@link Object#wait(long timeoutMillis, int nanos)}
          
      Whereas this tag has a reference `Object#wait` and a label `(long timeoutMillis, int nanos)`:

          {@link Object#wait (long timeoutMillis, int nanos)}
          
      The problem might not be obvious when newlines (also whitespace) are at play. For example, if references are formatted to stay within a fixed line width:

          {@link Object#wait
          (long timeoutMillis, int nanos)}

      This needs to be specified in Documentation Comment Specification for the Standard Doclet.

      This came up with JDK-8250766, which in turn triggered JDK-8266567.

            Assignee:
            Jonathan Gibbons
            Reporter:
            Pavel Rappo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: