<div dir="ltr">Yes it will cause start up issues for applications which define transient normal scoped injections, however these Apps currently have runtime issues after dezieralization of passivatable scoped bean.<div><br></div><div>Trading an easily fixable start-up issue for a hard to reproduce runtime issue seems like a good trade off to me.</div><div><br></div><div>Stephan</div><div><div><span style="line-height:1.5"> </span><br></div><div><div><br></div><div><div><br></div><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 19 Jul 2016 at 12:12 Emily Jiang &lt;<a href="mailto:EMIJIANG@uk.ibm.com">EMIJIANG@uk.ibm.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size="2" face="sans-serif">If we define an error, we will introduce
a backward compatibility issue. Some app will stop starting. Will this
cause a big problem? If this is not a concern, +1 on defining a DefinitionError
on this case: </font><font size="1" color="#2f2f2f" face="Arial">ERROR - when
normal scoped injects are marked transient.</font><font size="2" face="sans-serif">
and a warning on </font><font size="1" color="#2f2f2f" face="Arial">WARNING
- when non-normal scoped injects are marked transient.</font>
<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:  +44 (0)1962 816278  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><font size="1" color="#5f5f5f" face="sans-serif">From:      
 </font><font size="1" face="sans-serif">Stephan Knitelius &lt;<a href="mailto:stephan@knitelius.com" target="_blank">stephan@knitelius.com</a>&gt;</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">To:      
 </font><font size="1" face="sans-serif">cdi-dev &lt;<a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a>&gt;,
</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Date:      
 </font><font size="1" face="sans-serif">19/07/2016 08:26</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Subject:    
   </font><font size="1" face="sans-serif">[cdi-dev] CDI-616
Injection point declared as transient is not        useful</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.org</a></font>
<br>
<hr noshade>
<br>
<br>
<br><font size="3">Hi,</font>
<br>
<br><font size="3">I frequently encounter injections marked transient in
client projects. I really think it would be of great help if we where to
define Error/Warning when injection fields are marked transient. </font>
<br>
<br><font size="3">As Mark pointed out there may be a valid use cases for
non normal-scoped bean injections to be made transient. </font>
<br>
<br><font size="3">My suggestion is: </font>
<ul><li><font size="1" color="#2f2f2f" face="Arial">ERROR - when normal scoped
injects are marked transient.</font>
</li></ul><ul><li><li><font size="1" color="#2f2f2f" face="Arial">WARNING - when non-normal scoped
injects are marked transient.</font>
<br><font size="3">  </font>
<br><font size="3">Looking forward to your feedback.</font>
<br>
<br></li></li></ul><ul><li><li><font size="3">Stephan</font><tt><font size="2">_______________________________________________<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/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/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.</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></li></li></ul></blockquote></div>