[weld-dev] are AnnotatedType and Co immutable?

Mark Struberg struberg at yahoo.de
Fri Mar 18 05:24:36 EDT 2011


Hi folks!

If I pat(@Observes ProcessAnnotatedType annotatedType), is it allowed to simply modify the Sets?

E.g. call 
annotatedType.getAnnotations().add(myOwnAnnotation) ?

The spec imo doesn't mention that those Sets are immutable, so it should work. It works in OWB at least, but what about Weld and CanDI?

txs and LieGrue,
strub




      


More information about the weld-dev mailing list