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

Method signatures not formatted correctly in browser

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11.0.1
    • Fix Version/s: 13
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b24
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Preformatted method signatures are not displayed correctly by the browser in javadoc pages (see attached screenshots for expected and actual display). This was probably introduced by JDK-8187288.

        This is the code used for the example screenshots:

        public interface JavadocAnnotationIssue {
          /**
          * Reproduces the formatting error when there is a long @Generated annotation.
          * @param one first
          * @param two second
          * @param three third
          */
          @javax.annotation.Generated(
                    value = "SomeGeneratedClassName",
                    date = "a date",
                    comments = "some really long comment to help demonstrate the issue")
          public void doSomething(String one, String two, String three);
        }

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                hannesw Hannes Wallnoefer
                Reporter:
                hannesw Hannes Wallnoefer
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: