[webbeans-issues] [JBoss JIRA] Created: (WBRI-279) UnsatisfiedDependencyException with beans that subclass generic type
Andy Gibson (JIRA)
jira-events at lists.jboss.org
Fri Jun 12 15:38:56 EDT 2009
UnsatisfiedDependencyException with beans that subclass generic type
--------------------------------------------------------------------
Key: WBRI-279
URL: https://jira.jboss.org/jira/browse/WBRI-279
Project: Web Beans
Issue Type: Bug
Affects Versions: 1.0.0.PREVIEW1
Environment: JBoss 5.1.0 (with default Web Beans Implementation) and JBoss 5.0.1 with Web Beans 1.0 - Preview. Using JSF 2.0 as the view, Java 1.6 on Windows XP and JBoss Tools 3.1M with your build drivers.
Reporter: Andy Gibson
I encountered a problem with injection a bean that subclasses a generic type, the details can be found in the referenced Forum post, but as an addition :
If IntegerFactory inherits from AbstractFactory, it can only use the generic type on the injection point (the concrete IntegerFactory type name fails).
If IntegerFactory inherits from Object or a non-generic class, then the IntegerFactory type name works fine on the injection point.
This is true when using either @Current and @Named or a custom binding type.
Cheers,
Andy Gibson
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list