1 Reply Latest reply on Feb 5, 2018 3:35 AM by Martin Kouba

    Must a qualifier be meta-annotated with javax.inject.Qualifier?

    Laird Nelson Apprentice

      The specification says:

      A qualifier type is a Java annotation defined as @Retention(RUNTIME). Typically a qualifier type is defined as @Target({METHOD, FIELD, PARAMETER, TYPE}).

      A qualifier type may be declared by specifying the @javax.inject.Qualifier meta-annotation.

      BeanAttributes#getQualifiers() returns only annotations that have, themselves, been annotated with javax.inject.Qualifier.  Is this correct?  (Note the usages of "is" and "may be" above.)