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

Nonexistent method reference in "Repeating Annotations"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • None
    • docs
    • None

      A colleague reports:

      I noticed that "Repeating Annotations"
      http://docs.oracle.com/javase/tutorial/java/annotations/repeating.html
      links to a nonexistent AnnotatedElement.getAnnotations(Class<T>) method; I think it should be AnnotatedElement.getAnnotationsByType(Class<T>), but I'm not certain. The whole "Retrieving Annotations" could be clearer, but just fixing the method name would be helpful :)

      (More generally, it should not be possible for java documentation to contain dead links to javadoc)

            rgallard Raymond Gallardo
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: