Hi Todor,
it's not forbidden but defined as non-portable behavior, i.e. it depends
on implementation whether it will ignore the attributes, throw
DeploymentException, etc.
For Weld the attributes should be ignored. Just try OWB and if ok then
you're probably safe to go ;-)
Martin
Dne 1.9.2017 v 09:51 Todor Boev napsal(a):
Hello,
Is it against the CDI 2.0 specification to have attributes on a scope
annotation? If not is this a corner case that may become forbidden or
simply not be taken into account in future versions of the specification?
E.g. @ComponentScoped("my-component")
With Weld 3.0.0 I was able to successfully use such annotations.
Regards,
Todor
_______________________________________________
cdi-dev mailing list
cdi-dev(a)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.
--
Martin Kouba
Senior Software Engineer
Red Hat, Czech Republic