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

Nonexistent method reference in "Repeating Annotations"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: docs
    • Labels:
      None

      Description

      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)

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: