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

Fix the applicability of a no-@Target annotation type

    XMLWordPrintable

Details

    • Enhancement
    • Status: Open
    • P4
    • Resolution: Unresolved
    • 11
    • tbd
    • tools
    • 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

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

              Dates

                Created:
                Updated: