In weld the sets are immutable (or defensive copies, can't remember). I don't think that just because the spec does not mention immutability that you could expect to modify internal state of the annotated type through the set.
Stuart Sent from my iPhone On 18/03/2011, at 20:24, Mark Struberg <[email protected]> wrote: > 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 > > > > > > _______________________________________________ > weld-dev mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/weld-dev _______________________________________________ weld-dev mailing list [email protected] https://lists.jboss.org/mailman/listinfo/weld-dev
