[weld-issues] [JBoss JIRA] Commented: (WELDX-133) Odd issues with generic parameter types and generic beans
Stuart Douglas (JIRA)
jira-events at lists.jboss.org
Fri Sep 24 04:53:28 EDT 2010
[ 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
More information about the weld-issues
mailing list