[cdi-dev] TCK and spec question

Mark Struberg struberg at yahoo.de
Sun Dec 21 15:47:35 EST 2014


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? We have no whatever chance to prevent this anyway. 

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


More information about the cdi-dev mailing list