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

REGRESSION: Method parameters no longer align vertically with linked return type

XMLWordPrintable

    • b30
    • x86
    • windows_nt

      Consider the following source:

      public class JDTest2 {
          public int good(boolean a, boolean b, boolean c) {}
          public Object bad(boolean a, boolean b, boolean c) {}
      }

      JavaDoc is run using the following:
      javadoc -J-DproxyHost=webgate.central -J-DproxyPort=8080 -link http://java.sun.com/j2se/1.4.2/docs/api/ JDTest2.java

      The JavaDoc for method "good" shows as:

      public int good(boolean a,
                      boolean b,
                      boolean c)

      The JavaDoc for method "bad" shows as:

      public Object bad(boolean a,
                                  boolean b,
                                  boolean c)

      Notice how the second and third parameters are shifted. This weird formatting seems to happen whenever the return type is linked somewhere other than locally. It makes documentation really ugly.

      This does not happen in 1.4.2.

      ###@###.### 2003-10-10

            jhosunw Jamie Ho (Inactive)
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: