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

Fix the applicability of a no-@Target annotation type

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 11
    • 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.

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

              Created:
              Updated: