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

Note whether returned annotations are declaration annotations or type annotations

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: