<div dir="ltr">Ok, so I was able to reproduce my issue, but it doesn&#39;t match Aslak&#39;s case.<div><br></div><div><a href="https://github.com/johnament/cdifoo">https://github.com/johnament/cdifoo</a><br></div><div><br>
</div><div>It&#39;s a very simple project.  I used AS7 as my deployment container.</div><div><br></div><div>In one test, I use beans.xml to autoregister the archive.</div><div>That passes fine.</div><div><br></div><div>In the other test, I don&#39;t use a beans.xml, instead I use </div>
<div><br></div><div>public void addHandlers(@Observes BeforeBeanDiscovery bbd,BeanManager beanManager) {<br></div><div><br></div><div>to register the classes in my archive.  I even go the extra step of registering my interface and test case, just in case.</div>
<div><br></div><div>Could you take a look at the project and let me know if you see something I did wrong?</div><div><br></div><div>- John</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 2, 2013 at 9:46 AM, John D. Ament <span dir="ltr">&lt;<a href="mailto:john.d.ament@gmail.com" target="_blank">john.d.ament@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yeah... Aslak&#39;s the one who brought this to my attention.  It was something I saw happening in AS7 as well.  Let me see if I can create a simple project that demos this.</div>
<div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Tue, Jul 2, 2013 at 9:18 AM, Pete Muir <span dir="ltr">&lt;<a href="mailto:pmuir@redhat.com" target="_blank">pmuir@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Yes, if you use @EJB, all bets are off :-) I was assuming John had an EJB that he wanted to @Inject.<br>
<div><div><br>
On 2 Jul 2013, at 14:13, Romain Manni-Bucau &lt;<a href="mailto:rmannibucau@gmail.com" target="_blank">rmannibucau@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi<br>
&gt;<br>
&gt; i think @EJB Foo&lt;Bar&gt; ignores Bar (or at least the ejb spec doesnt define it)<br>
&gt;<br>
&gt; Romain Manni-Bucau<br>
&gt; Twitter: @rmannibucau<br>
&gt; Blog: <a href="http://rmannibucau.wordpress.com/" target="_blank">http://rmannibucau.wordpress.com/</a><br>
&gt; LinkedIn: <a href="http://fr.linkedin.com/in/rmannibucau" target="_blank">http://fr.linkedin.com/in/rmannibucau</a><br>
&gt; Github: <a href="https://github.com/rmannibucau" target="_blank">https://github.com/rmannibucau</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2013/7/2 Pete Muir &lt;<a href="mailto:pmuir@redhat.com" target="_blank">pmuir@redhat.com</a>&gt;<br>
&gt;<br>
&gt; On 2 Jul 2013, at 11:28, John D. Ament &lt;<a href="mailto:john.d.ament@gmail.com" target="_blank">john.d.ament@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi all<br>
&gt; &gt;<br>
&gt; &gt; In section 4.2 of the CDI spec (both 1.0 and 1.1) there are references to injection around generic types.  I was wondering if someone could clarify this case?<br>
&gt; &gt;<br>
&gt; &gt; I have an interface:<br>
&gt; &gt;<br>
&gt; &gt; public interface Handler&lt;? extends Foo&gt; { ... }<br>
&gt; &gt;<br>
&gt; &gt; and then I have two implementations<br>
&gt; &gt;<br>
&gt; &gt; public class FarlowHandler implements Handler&lt;Farlow&gt; { .. }<br>
&gt; &gt;<br>
&gt; &gt; public class BagelHandler implements Handler&lt;Bagel&gt; { ... }<br>
&gt; &gt;<br>
&gt; &gt; Is it expected that I should be able to inject references to these by doing:<br>
&gt; &gt;<br>
&gt; &gt; @Inject<br>
&gt; &gt; private Handler&lt;Farlow&gt; fHandler;<br>
&gt; &gt;<br>
&gt; &gt; @Inject<br>
&gt; &gt; private Handler&lt;Bagel&gt; bHandler;<br>
&gt;<br>
&gt; Yes.<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; ?  Is there any expected difference when using EJBs?<br>
&gt;<br>
&gt; Assuming the interface is part of the local client view of the EJB, then no. Obviously, if EJB has any rules around declaring generic types in local interfaces, then you need to respect those (IIRC, it doesn&#39;t).<br>


&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; cdi-dev mailing list<br>
&gt; <a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>