<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">You are right, this is a bug in Weld.
Please file a Weld issue.<br>
<br>
On 11/12/2013 10:18 AM, Antoine Sabot-Durand wrote:<br>
</div>
<blockquote
cite="mid:2455DB3B-B439-408C-BFB3-1916BB55C4A3@sabot-durand.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>Hi all,</div>
<div><br>
</div>
<div>I’m experiencing what I think being a regression and a
specification violation.</div>
<div><br>
</div>
<div>In my use case I have a producer annotated with @Named
injecting an InjectionPoint:</div>
<div><br>
</div>
<div>
<div style="margin: 0px; font-family: Menlo;"><span
style="color: #929000">@Produces</span></div>
<div style="margin: 0px; font-family: Menlo;"><span
style="color: #929000">@Named<br>
</span><span style="color: #011993"><b>public </b></span>OAuthSession
getCurrentSession(InjectionPoint ip) {…}</div>
</div>
<div><br>
</div>
<div>When I call <font face="Menlo">#{currentSession}</font> in
JSF with Weld 1.x producer is called with InjectionPoint set to
null. Now with weld 2.x an exception is thrown by <font
face="Menlo">InjectionPointBean.getInjectionPoint()</font>
method.</div>
<div><br>
</div>
<div>Form what I understand from section <a moz-do-not-send="true"
href="http://docs.jboss.org/cdi/spec/1.1/cdi-spec.html#contextual_reference"
style="font-size: 14px; background-color: rgb(255, 255, 255);
color: fuchsia;">6.5.3. Contextual reference for a bean</a> of
the CDI 1.1 spec, the behavior should the Weld 1.X one :
returning null instead of throwing an exception. I may be wrong
but I can’t find anything in the spec about that.</div>
<div><br>
</div>
<div>Thanks for your feedback on that point,</div>
<div><br>
</div>
<div><br>
</div>
<div><i>Antoine Sabot-Durand</i></div>
<div apple-content-edited="true">
<div>
<div><i>———————————————</i></div>
<div><i>Senior Software engineer</i></div>
<div><i>CDI co-spec lead</i></div>
<div><i>CDI eco-system development</i></div>
</div>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
weld-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/weld-dev">https://lists.jboss.org/mailman/listinfo/weld-dev</a></pre>
</blockquote>
<br>
</body>
</html>