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

Type annotations on primitive types are not linked

    XMLWordPrintable

Details

    • b14
    • generic
    • generic

    Description

      A DESCRIPTION OF THE PROBLEM :
      Javadoc tool outputs @Documented type annotations on primitive types as plain text without linking them.

      Consider the example:
      -------------------------------------
      // Example.java
      import java.lang.annotation.*;

      public class Example {

          @Documented
          @Target(ElementType.TYPE_USE)
          public @interface Anno { }

          public void method(@Anno Object value) { }

          public void method(@Anno int value) { }
      }
      -------------------------------------
      The Javadoc tool writes @Anno as hyperlink in method(Object) but as plain text in method(int).


      FREQUENCY : always


      Attachments

        Issue Links

          Activity

            People

              liach Chen Liang
              webbuggrp Webbug Group
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: