JDK-4788715 : Types of arguments in same package not links
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2002-12-04
  • Updated: 2014-05-05
  • Resolved: 2002-12-05
Related Reports
Duplicate :  
Description

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) 
======================================================================

Comments
EVALUATION This is a duplicate of: 4628281: REGRESSION: Internal links missing from return/param types when .java files passd in which has been fixed in 1.4.2. ###@###.### 2002-12-04
04-12-2002