[cdi-dev] @WithAnnotations and meta-annotations
Mark Struberg
struberg at yahoo.de
Wed Jan 13 06:19:08 EST 2016
I think we don’t check for the meta-annotations neither. But would need to look at the code in detail.
LieGrue,
strub
> Am 13.01.2016 um 11:16 schrieb Martin Kouba <mkouba at redhat.com>:
>
> Hi all,
>
> suppose the following use-case:
>
> * a class Foo annotated with a stereotype @Alpha which declares another
> stereotype @Bravo with meta-annotation @Baz
> * a PAT observer annotated with @WithAnnotations({ Baz.class })
>
> The question is: should this observer method be called for Foo? In other
> words, how should we interpret "11.5.6. ProcessAnnotatedType event"? The
> current spec wording seems ambiguous.
>
> Weld currently does not perform the check "recursively", i.e. the
> observer method will not be called as Weld only considers annotations on
> the annotated type, on any member/parameter of the annotated type, or
> meta-annotations of such annotations (i.e. goes one level down).
>
> I'm not sure about OWB.
>
> Also note that there is no TCK test for this special use-case.
>
> Thanks,
>
> Martin
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
>
> Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.
More information about the cdi-dev
mailing list