<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">&nbsp;<br>
MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>
Phone: &nbsp;+44 (0)1962 816278 &nbsp;Internal: 246278<br>
<br>
Email: emijiang@uk.ibm.com <br>
Lotus Notes: Emily Jiang/UK/IBM@IBMGB<br>
</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">Stephan Knitelius &lt;stephan@knitelius.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">cdi-dev &lt;cdi-dev@lists.jboss.org&gt;,
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">19/07/2016 08:26</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">[cdi-dev] CDI-616
Injection point declared as transient is not &nbsp; &nbsp; &nbsp; &nbsp;useful</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">cdi-dev-bounces@lists.jboss.org</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.&nbsp;</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.&nbsp;</font>
<br>
<br><font size=3>My suggestion is:&nbsp;</font>
<ul>
<li><font size=1 color=#2f2f2f face="Arial">ERROR - when normal scoped
injects are marked transient.</font>
<li><font size=1 color=#2f2f2f face="Arial">WARNING - when non-normal scoped
injects are marked transient.</font>
<br><font size=3>&nbsp;&nbsp;</font>
<br><font size=3>Looking forward to your feedback.</font>
<br>
<br><font size=3>Stephan</font><tt><font size=2>_______________________________________________<br>
cdi-dev mailing list<br>
cdi-dev@lists.jboss.org<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/cdi-dev"><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"><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></ul>