Type annotation is not shown for wildcard type in Javadoc

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 15
    • Affects Version/s: 11, 13, 15
    • Component/s: tools

        Code:

        // Wildcard.java
        import java.lang.annotation.*;

        public class Wildcard<T> {
          public Wildcard<@Anno ? super String> x() {return null;}

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

        javadoc Wildcard.java yields the following method signature:

        public Wildcard<? super java.lang.String> x()

        It's expected to have

        public Wildcard<@Anno ? super java.lang.String> x()

        Tried with java 11, java 13 and java 15-ea

              Assignee:
              Hannes Wallnoefer
              Reporter:
              Tagir Valeev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: