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

Javadoc link fails when a generic is used.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 6
    • tools

      FULL PRODUCT VERSION :
      Any java 1.5 ot 1.6 version.

      ADDITIONAL OS VERSION INFORMATION :
      Winodws XP

      A DESCRIPTION OF THE PROBLEM :
      When a generic appears in an @link reference it complains of illegal characters.
      e.g. Javadoc for Collections.rotate has an {@link #reverse(List<?>)}
      Javadoc complains that < ? and > are illegal characters.

      Expected behaviour:
      - don't complain of illegal characters which would be legal' for generics.
      - Display the information provided ratehr than dropping these characters.

      REGRESSION. Last worked in version mustang

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Use javadoc on java.util.Collections.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Link should appear as

      reverse(List<?>)

      as it appears in the javadoc without error messages.
      ACTUAL -
      Error messages in the javadoc log.
      reverse(List)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      See java src.zip
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Ignore it. This workaround has been in place for a while. :)

            Unassigned Unassigned
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: