<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">org.jboss.weld.test.core.TestCore is used by the&nbsp;org.jboss.weld.test.junit.CDIRunner to inject the dependencies of the test case. However, it only supports&nbsp;injection of qualified fields. As a side effect, dependencies declared as concrete classes can not be injected, since qualifiers only make sense to&nbsp;interface/abstract dependency declarations:<br><br>package org.jboss.weld.test.core;<br>...<br><br>public class TestCore {<br>...<br>&nbsp;private void injectField(Field field, Object target) throws Exception<br>&nbsp;&nbsp; {<br><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><b>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;if (!hasBindTypeAnnotation(field.getAnnotations()))<br>&nbsp;&nbsp; &nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; return;<br>&nbsp;&nbsp; &nbsp; &nbsp;}</b></span></font><br>&nbsp;&nbsp; &nbsp; &nbsp;if (!field.isAccessible())<br>&nbsp;&nbsp; &nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; field.setAccessible(true);<br>&nbsp;&nbsp; &nbsp; &nbsp;}<br>&nbsp;&nbsp; &nbsp; &nbsp;Object injectable = getInstanceByType(field.getType(), field<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.getAnnotations());<br><br>&nbsp;&nbsp; &nbsp; &nbsp;if (injectable != null)<br>&nbsp;&nbsp; &nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; field.set(target, injectable);<br>&nbsp;&nbsp; &nbsp; &nbsp;}<br>&nbsp;&nbsp; }<div><br></div><div>Just wondering the value of this restriction?</div><div><br></div><div>/Johan</div></body></html>