[webbeans-issues] [JBoss JIRA] Closed: (WBRI-279) UnsatisfiedDependencyException with beans that subclass generic type

Pete Muir (JIRA) jira-events at lists.jboss.org
Fri Jun 26 07:29:56 EDT 2009


     [ https://jira.jboss.org/jira/browse/WBRI-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WBRI-279.
--------------------------

    Resolution: Done
      Assignee: Pete Muir


Thanks Andy, as I thought I fixed this problem earlier.

Anyway, I added https://svn.jboss.org/repos/webbeans/ri/trunk/tests/src/test/java/org/jboss/webbeans/test/unit/lookup/wbri279/Wbri279Test.java

> 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: 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