]
Pete Muir resolved WELD-763.
----------------------------
Assignee: Pete Muir
Resolution: Done
NullPointerException when attempting to get an InjectionTarget for an
Interface Class
-------------------------------------------------------------------------------------
Key: WELD-763
URL:
https://jira.jboss.org/browse/WELD-763
Project: Weld
Issue Type: Bug
Reporter: Tom Fennelly
Assignee: Pete Muir
Fix For: 1.1.0.Beta3
Simple enough to reproduce...
AnnotatedType<?> annotatedType = beanManager.createAnnotatedType(serviceType);
InjectionTarget injectionTarget = beanManager.createInjectionTarget(annotatedType);
Where serviceType is an Interface Class. A NPE results on the following call to
createInjectionTarget because serviceType has no constructors....
java.lang.NullPointerException
at org.jboss.weld.util.Beans.getPostConstructMethods(Beans.java:246)
at
org.jboss.weld.manager.SimpleInjectionTarget.<init>(SimpleInjectionTarget.java:85)
at
org.jboss.weld.manager.BeanManagerImpl.createInjectionTarget(BeanManagerImpl.java:1006)
at
org.switchyard.cdi.ServiceDeployer.addInjectableClientProxyBean(ServiceDeployer.java:86)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: