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

Fix the applicability of a no-@Target annotation type

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 11
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      javac in at least JDK 11 misinterprets the applicability of an annotation type T whose declaration has no @Target meta-annotation. For example, T should be applicable to module declarations, yet javac disallows @T in that context. (ecj allows it, correctly.)

      See JDK-8231435 for a simple clarifying spec change in this area.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cushon Liam Miller-Cushon
              Reporter:
              abuckley Alex Buckley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: