[weld-issues] [JBoss JIRA] Updated: (WELD-763) NullPointerException when attempting to get an InjectionTarget for an Interface Class
Pete Muir (JIRA)
jira-events at lists.jboss.org
Tue Nov 23 05:59:59 EST 2010
[ https://jira.jboss.org/browse/WELD-763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir updated WELD-763:
---------------------------
Fix Version/s: 1.1.0.Beta3
> 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
> 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: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list