]
Pete Muir closed WBRI-279.
--------------------------
Resolution: Done
Assignee: Pete Muir
Thanks Andy, as I thought I fixed this problem earlier.
Anyway, I added
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
Assignee: Pete Muir
Fix For: 1.0.0.CR1
Attachments: Test Beans.zip
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: