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

Type annotations on primitive types are not linked

XMLWordPrintable

    • b14
    • generic
    • generic

      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


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

              Created:
              Updated:
              Resolved: