[cdi-dev] TCK and spec question
Jozef Hartinger
jharting at redhat.com
Mon Dec 22 03:29:49 EST 2014
On 12/21/2014 09:47 PM, Mark Struberg wrote:
> Hi!
>
> I just came across this little sentence in the spec
>
>
>
> 11.5.6 "If any ProcessAnnotatedType method is called outside of the observer method invocation, an IllegalStateException is thrown."
>
>
> I don't believe such a limitation helps much. What about extensions who do a setAnnotatedType and change this instance in a later phase?
Such as?
> We have no whatever chance to prevent this anyway.
We can prevent that by throwing the exception, rather than silently
ignoring that the extension is doing something wrong.
>
> So why not just say that if a CDI System Event gets modified outside of the method it gets injected into then non portable behaviour results.
>
> LieGrue,
> strub
> _______________________________________________
> 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