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

Class use page does not include extends/implements type arguments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 22, 23
    • tools
    • None

      Currently in the javadoc tool, the generated class use page does not track the occurrences of a class in the type arguments of the extends or implements list, where they can appear. For example:

          public class One {}

          import java.util.*;
          public class Two extends ArrayList<One> implements Comparator<One> {
          }

      Run `javadoc -use *.java`, the use page for One will be empty, despite it appearing in the type arguments.

      This problem already manifests itself in the current JDK 22: The preview class java.lang.classfile.FieldBuilder has a usage in FieldTransform (which extends ClassFileTransform<FieldElement, FieldBuilder>) but is not shown as such. It limits the usefulness of use page as a way to examine the API exposure of a class without using IDEs.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: