<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Done</div><div><br></div><div><a class="issue-created-key issue-link" data-issue-key="WELD-1552" href="https://issues.jboss.org/browse/WELD-1552" style="color: rgb(51, 102, 153); margin-top: 0px; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px;">WELD-1552 - InjectionPoint resolution not conform to CDI 1.1 spec</a></div><div>Perhaps there’s also a hole in TCK here ?</div><div><br></div><div>
<div><div><i>Antoine Sabot-Durand</i></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><div><div>Le 12 nov. 2013 à 12:10, Jozef Hartinger &lt;<a href="mailto:jharting@redhat.com">jharting@redhat.com</a>&gt; a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div 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&nbsp;<font face="Menlo">#{currentSession}</font>&nbsp;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&nbsp;<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>&nbsp;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>
  </div>

</blockquote></div><br></body></html>