see the JavaDoc here: http://docs.jboss.org/weld/javadoc/2.2/weld-spi/org/jboss/weld/bootstrap/spi/Deployment.html#loadBeanDeploymentArchive-java.lang.Class-
Specifically, it says:
" If the deployment archive containing the given class is not currently a bean deployment archive, it must be added to the bean deployment archive graph and returned."
Therefore, even though the given class is not part of an existing bean archive, it should be handled by the integrator, added to the bean archive graph and returned from the method.
On 05/24/2015 09:58 AM, Emily Jiang wrote:
I'm trying to run the cdi tck but got an error for the following test:
In the test: org.jboss.cdi.tck.tests.definition.bean.custom.CustomBeanImplementationTest
Caused by: org.jboss.weld.exceptions.IllegalStateException: WELD-000817: Unable to find Bean Deployment Archive for class java.lang.Integer
... 15 more
It seems that Custom bean was added by an extension but the bean implements Bean<Integer>. Surely the java.lang.Interger should not be any bean archives. Can someone tell me what I might done wrong? Will integrator need to do something to cater for all of the java.x classes or Weld should handle this?
_______________________________________________ weld-dev mailing list email@example.com https://lists.jboss.org/mailman/listinfo/weld-dev