[webbeans-issues] [JBoss JIRA] Updated: (WBRI-194) super class and interfaces don't inherit type parameters.

Takeshi Kondo (JIRA) jira-events at lists.jboss.org
Sat Mar 21 06:18:22 EDT 2009


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

Takeshi Kondo updated WBRI-194:
-------------------------------

    Attachment: parameterized_type_inheritance.patch


I have modified a logic discover binding classes.
If type is ParameterizedType,
this patch logic resolves TypeVariable and
creates ParameterizedType inheriting type paramter.

> super class and interfaces don't inherit type parameters.
> ---------------------------------------------------------
>
>                 Key: WBRI-194
>                 URL: https://jira.jboss.org/jira/browse/WBRI-194
>             Project: Web Beans
>          Issue Type: Bug
>          Components: Producer beans
>    Affects Versions: 1.0.0.BETA1
>            Reporter: Takeshi Kondo
>         Attachments: parameterized_type_inheritance.patch, test_code.patch
>
>
> for instance
>   @Produces
>    public List<String> createStringList()
>    {
>       return Arrays.asList("aaa", "bbb");
>    }
>    
>   
> I expected that this producer method is bound to List<String> and Collection<String>... .
> but actual bound type is List<String> and Collection ... .

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