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

Note whether returned annotations are declaration annotations or type annotations

    Details

    • Type: Enhancement
    • Status: In Progress
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 13
    • Fix Version/s: 14
    • Component/s: core-libs
    • Labels:

      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

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

                Dates

                • Created:
                  Updated: