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

Standard Doclet should not attempt to link to primitive types

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • None
    • tools
    • None

      In LinkFactory.getLink (about line 71) it handles primitive types and other conditions, including arrays of primitives, in the TypeVisitor that is used when `linkInfo.type` is non-null.

      But, it does not check for synthetic elements for primitive types, which may be returned by CommentHelper.getReferencedClass from something like `{@link byte}`. This can cause problems lower down in Elements.getModuleOf.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: