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

Types of arguments in same package not links

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.1
    • tools



      Name: rmT116609 Date: 12/04/2002


      FULL PRODUCT VERSION :
      java version "1.4.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
      Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)



      FULL OPERATING SYSTEM VERSION :

      Linux localhost.localdomain 2.4.18-17.7.x #1 Tue Oct 8
      13:33:14 EDT 2002 i686 unknown

      A DESCRIPTION OF THE PROBLEM :
      The generated HTML for a Class that has methods or
      constructors with arguments that are Classes in the same
      package as the Class being generated doesn't contain links
      around the types of the arguments. Types of arguments in
      other packages are, as expected (and as occurs in 1.3.1),
      links.

      REGRESSION. Last worked in version 1.3.1

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Put the source code included below in a file called
      Test.java.
      2. Make a directory called docs.
      3. Generate javadocs using the command:
      javadoc -d docs -link
      http://java.sun.com/j2se/1.4/docs/api/ Test.java
      4. Browse the generated file docs/Test.html

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      In the Constructor Summary and the Constructor Detail, the
      type of the first argument to the constructor (Test) is
      static text, not a link. The type of the second argument
      (String) is, as expected, a link (to the String javadocs on
      java.sun.com). The problem also occurs if the Test Class is
      in a package (demonstrating the problem is just simpler
      without it in a package).

      If the javadocs for Test.java are generated using the
      1.3.1_04 SDK, the resulting Test.html has the types of both
      arguments as links to the appropriate HTML pages.

      The problem occurs in both 1.4.0_02 and 1.4.1.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      // Test.java

      public class Test
      {
          /**
           * Construct a Test from an existing Test and a String.
           *
           * @param t an existing Test
           * @param s a String
           */
          public Test(Test t, String s)
          {
          }
      }

      ---------- END SOURCE ----------


      (Review ID: 166812)
      ======================================================================

            Unassigned Unassigned
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: