Fix the applicability of a no-@Target annotation type

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 11
    • Component/s: tools
    • None

      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.

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

              Created:
              Updated: