<div dir="ltr"><div>Enforcing the right usage would be great, but it would also break existing applications.</div><div><br></div><div>I, therefore, vote: (a)</div><div><br></div>Developers who introduced this to their code most likely handle the existing behaviour in some way and I don't see a reason to break that.<div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>--</div><div><b>Thorben Janssen</b><br></div><div><br></div><div><a href="https://twitter.com/thjanssen123" target="_blank">@thjanssen123</a><br></div><a href="http://www.thoughts-on-java.org" target="_blank">www.thoughts-on-java.org</a> <br></div></div></div>
<br><div class="gmail_quote">2016-08-03 14:55 GMT+02:00 Emily Jiang <span dir="ltr"><<a href="mailto:EMIJIANG@uk.ibm.com" target="_blank">EMIJIANG@uk.ibm.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size="2" face="sans-serif">I think there are 4a and 4b</font>
<br><font size="2" face="sans-serif">I'm happy for b to be reworded to</font>
<br>
<br><font size="2" face="sans-serif">b) A definition error will be thrown
if the injection point is transient and resolves to a normal scoped bean.</font>
<br><span class="">
<br>
<br><font size="2" face="sans-serif">Many thanks,<br>
Emily<br>
===========================<br>
Emily Jiang<br>
WebSphere Application Server, CDI Development Lead</font>
<br><font size="2" face="sans-serif"> <br>
MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>
Phone: <a href="tel:%2B44%20%280%291962%20816278" value="+441962816278" target="_blank">+44 (0)1962 816278</a> Internal: 246278<br>
<br>
Email: <a href="mailto:emijiang@uk.ibm.com" target="_blank">emijiang@uk.ibm.com</a> <br>
Lotus Notes: Emily Jiang/UK/IBM@IBMGB<br>
</font>
<br>
<br>
<br>
<br></span><font size="1" color="#5f5f5f" face="sans-serif">From:
</font><font size="1" face="sans-serif">Martin Kouba <<a href="mailto:mkouba@redhat.com" target="_blank">mkouba@redhat.com</a>></font>
<br><font size="1" color="#5f5f5f" face="sans-serif">To:
</font><font size="1" face="sans-serif"><a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a>,
</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Date:
</font><font size="1" face="sans-serif">03/08/2016 11:22</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Subject:
</font><font size="1" face="sans-serif">Re: [cdi-dev]
[Vote] for CDI-616 resolution</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Sent by:
</font><font size="1" face="sans-serif"><a href="mailto:cdi-dev-bounces@lists.jboss.org" target="_blank">cdi-dev-bounces@lists.jboss.<wbr>org</a></font>
<br>
<hr noshade><div class="HOEnZb"><div class="h5">
<br>
<br>
<br><tt><font size="2">My vote is (b) - IF AND ONLY IF the definition error
only applies to a <br>
transient field injection point which resolves to a NORMAL SCOPED BEAN.
<br>
Because a contextual reference (client proxy) for such a bean is always
<br>
a passivation capable dependency. So there is no need to have it transient.<br>
<br>
Otherwise my vote is (a).<br>
<br>
Martin<br>
<br>
<br>
Dne 3.8.2016 v 11:38 Emily Jiang napsal(a):<br>
> My vote is b.<br>
><br>
> Since it is not working in the current version, no functioning<br>
> applications should rely on it. Throwing an exception is clearer to
the<br>
> developers.<br>
><br>
> Many thanks,<br>
> Emily<br>
> ===========================<br>
> Emily Jiang<br>
> WebSphere Application Server, CDI Development Lead<br>
><br>
> MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>
> Phone: <a href="tel:%2B44%20%280%291962%20816278" value="+441962816278" target="_blank">+44 (0)1962 816278</a> Internal: 246278<br>
><br>
> Email: <a href="mailto:emijiang@uk.ibm.com" target="_blank">emijiang@uk.ibm.com</a><br>
> Lotus Notes: Emily Jiang/UK/IBM@IBMGB<br>
><br>
><br>
><br>
><br>
> From: Antoine Sabot-Durand <<a href="mailto:antoine@sabot-durand.net" target="_blank">antoine@sabot-durand.net</a>><br>
> To: cdi-dev <<a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a>>,<br>
> Date: 03/08/2016 10:23<br>
> Subject: [cdi-dev] [Vote] for CDI-616 resolution<br>
> Sent by: <a href="mailto:cdi-dev-bounces@lists.jboss.org" target="_blank">cdi-dev-bounces@lists.jboss.<wbr>org</a><br>
> ------------------------------<wbr>------------------------------<wbr>------------<br>
><br>
><br>
><br>
> Hi all,<br>
><br>
> During yesterday(s meeting we discussed how to solve CDI-616 issue.<br>
> 2 options are possible but we didn't find an agreement, so the best<br>
> solution here would be to vote.<br>
><br>
> Options are:<br>
><br>
> a) Do nothing about injection in transient fields (todays behaviour)
but<br>
> add a clarification in the spec saying that using them is not supported.<br>
> b) Throw an exception at boot time if a transient field is an injection<br>
> point.<br>
><br>
> To vote, just answer to this mail with the letter of your vote. Vote<br>
> will last 72 hrs from the hour of this mail.<br>
><br>
> Thank you,<br>
><br>
> Antoine _____________________________<wbr>__________________<br>
> cdi-dev mailing list<br>
> <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
> </font></tt><a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank"><tt><font size="2">https://lists.jboss.org/<wbr>mailman/listinfo/cdi-dev</font></tt></a><tt><font size="2"><br>
><br>
> Note that for all code provided on this list, the provider licenses
the<br>
> code under the Apache License, Version 2<br>
> (</font></tt><a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank"><tt><font size="2">http://www.apache.org/<wbr>licenses/LICENSE-2.0.html</font></tt></a><tt><font size="2">).
For all other ideas<br>
> provided on this list, the provider waives all patent and other<br>
> intellectual property rights inherent in such information.<br>
><br>
> Unless stated otherwise above:<br>
> IBM United Kingdom Limited - Registered in England and Wales with
number<br>
> 741598.<br>
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire
PO6 3AU<br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> cdi-dev mailing list<br>
> <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
> </font></tt><a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank"><tt><font size="2">https://lists.jboss.org/<wbr>mailman/listinfo/cdi-dev</font></tt></a><tt><font size="2"><br>
><br>
> Note that for all code provided on this list, the provider licenses
the code under the Apache License, Version 2 (</font></tt><a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank"><tt><font size="2">http://www.apache.org/<wbr>licenses/LICENSE-2.0.html</font></tt></a><tt><font size="2">).
For all other ideas provided on this list, the provider waives all patent
and other intellectual property rights inherent in such information.<br>
><br>
<br>
-- <br>
Martin Kouba<br>
Software Engineer<br>
Red Hat, Czech Republic<br>
______________________________<wbr>_________________<br>
cdi-dev mailing list<br>
<a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank"><tt><font size="2">https://lists.jboss.org/<wbr>mailman/listinfo/cdi-dev</font></tt></a><tt><font size="2"><br>
<br>
Note that for all code provided on this list, the provider licenses the
code under the Apache License, Version 2 (</font></tt><a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank"><tt><font size="2">http://www.apache.org/<wbr>licenses/LICENSE-2.0.html</font></tt></a><tt><font size="2">).
For all other ideas provided on this list, the provider waives all patent
and other intellectual property rights inherent in such information.<br>
<br>
</font></tt>
<br><font size="2" face="sans-serif"><br>
Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU<br>
</font></div></div><br>______________________________<wbr>_________________<br>
cdi-dev mailing list<br>
<a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/cdi-dev</a><br>
<br>
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" rel="noreferrer" target="_blank">http://www.apache.org/<wbr>licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br></blockquote></div><br></div></div>