[ 
https://jira.jboss.org/browse/WELDX-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12552951#action_12552951
 ] 

Stuart Douglas commented on WELDX-133:
--------------------------------------

The problem is that AnnotatedTypeBuilder does not build the type closure 
properly, for HashMap<String,String> it does not add Map<String,String> and 
AbstractMap<String,String>.

> Odd issues with generic parameter types and generic beans
> ---------------------------------------------------------
>
>                 Key: WELDX-133
>                 URL: https://jira.jboss.org/browse/WELDX-133
>             Project: Weld Extensions
>          Issue Type: Bug
>          Components: Generic Beans
>            Reporter: Pete Muir
>             Fix For: 1.0.0.Beta1
>
>
> For example:
>    
>    @Produces
>    @Infinispan
>    @DefaultCache
>    private Cache<String, String> cache;
> and on the generic bean
>    
>    @Produces
>    public AdvancedCache<K, V> getAdvancedCache()
>    {
>       return cacheContainer.<K, 
> V>getCache(infinispan.value()).getAdvancedCache();
>    }
> Should allow
> @Inject Cache<String, String> cache;
> but doesn't

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues

Reply via email to