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

REGRESSION: -use is severely broken

XMLWordPrintable

    • hopper
    • generic, x86
    • generic, linux, windows_nt, windows_2000

      The -use option appears to produce grossly incomplete information. For example,
      -use on the following produces a page for class JD that claims "No usage of jd.JD". In general there seems to be problems with finding uses in parameter types.

      package jd;

      public class JD {

          public static class Bar {
      public void foo(JD o) {
      }
          }
      }


      Name: rmT116609 Date: 02/22/2002


      DESCRIPTION OF THE PROBLEM :

      The "Use" page for a class in the documentation generated by javadoc does not list places where that class is used as an array type.

      An example in the JDK1.4 API javadocs where I noticed this is for the class java.lang.StackTraceElement:

      http://java.sun.com/j2se/1.4/docs/api/java/lang/StackTraceElement.html

      If you click the Use link at the top of the page it will report that there are no uses of the class. This is not exactly true. If you go to the docs for
      java.lang.Throwable.getStackTrace:

      http://java.sun.com/j2se/1.4/docs/api/java/lang/Throwable.html#getStackTrace()

      You will see that it is used in the API, it's just that it is used in the form of an array. As a user of the Javadocs, you would want the "Use" page to return uses as an array of that type as well.
      (Review ID: 143203)
      ======================================================================

      Name: rmT116609 Date: 03/15/2002


      DESCRIPTION OF THE PROBLEM :

      It appears that the class-use pages in the Javadoc- generated API documentation were not generated correctly.

      For example, the class-use page for java.net.URLStreamHandler.html, in the documentation bundle at:

      http://java.sun.com/j2se/1.4/docs/api/java/net/URLStreamHandler.html says:

          No usage of java.net.URLStreamHandler

      However, in class java.net.URLStreamHandlerFactory, method createURLStreamHandler(String) returns type URLStreamHandler.




      (Review ID: 144245)
      ======================================================================

            jhosunw Jamie Ho (Inactive)
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: