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

Note whether returned annotations are declaration annotations or type annotations

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 15
    • 13
    • core-libs

    Description

      In the javax.lang.model API, both declaration annotations and type annotations can be returned. It would be worthwhile to the API to note where each kind of annotation can be returned.

      In brief, the AnnotatedConstruct methods should have an @inheritDoc override in javax.lang.model.element.Element state that *declaration* annotations are returned while overrides in javax.lang.model.type.TypeMirror should state *type* annotations are returned.

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: