<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I don’t think it’s specified. As objects are, by default in Java, mutable, I would assume that payloads are implicitly mutable.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 16 Dec 2014, at 16:31, Antoine Sabot-Durand &lt;<a href="mailto:antoine@sabot-durand.net" class="">antoine@sabot-durand.net</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi guys,<div class=""><br class=""></div><div class=""><br class=""></div><div class="">Always working on Async event concept and discussion around mutable payloads. I was looking where in the spec we specified the fact that fired payload are mutable. I red-read chapter 10 &nbsp;(<a href="http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#events" class="">http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#events</a>) twice and didn’t found. I also browsed JIRA and TCK to find any ref to this feature and found nothing. On the other hand it is not specified that payload should be immutable ;)</div><div class=""><br class=""></div><div class="">I’d be happy if some of you could have a look and see if I missed something.</div><div class=""><br class=""></div><div class="">If I’m not wrong, the mutable payload we (including myself) advertise in CDI is a non portable feature (I’m the firs surprised here). So I propose that :</div><div class=""><br class=""></div><div class="">1) We decide to write something in the specification about allowing or forbidding it (I know some people not happy with this mix between observer and visitor pattern)</div><div class="">1bis) Should we decide to forbid it by default, we should provide an alternative mode to allow people using this unspecified feature</div><div class="">2) Forbid it for fireAsync()</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks for your feedback and your correction if I missed the feature in the spec.</div><div class=""><br class=""></div><div class="">Antoine&nbsp;</div></div>_______________________________________________<br class="">cdi-dev mailing list<br class=""><a href="mailto:cdi-dev@lists.jboss.org" class="">cdi-dev@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/cdi-dev<br class=""><br class="">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.</div></blockquote></div><br class=""></div></body></html>