[cdi-dev] [JBoss JIRA] (CDI-494) Clarify that a type variable that resolves to a wildcard is not resolvable

Matej Novotny (JIRA) issues at jboss.org
Mon Mar 7 04:38:00 EST 2016


    [ https://issues.jboss.org/browse/CDI-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172622#comment-13172622 ] 

Matej Novotny commented on CDI-494:
-----------------------------------

After quite a discussion we had on this topic, I am fairly convinced we should clarify, that wildcards do not belong to unresolvable types - e.g. +1 for the PR.
This will clear up, among other things, that it is valid to perform one {{Event.select(List<?>)}} and multiple {{event.fire(new ArrayList<SomeResolvableType>)}}.

> Clarify that a type variable that resolves to a wildcard is not resolvable
> --------------------------------------------------------------------------
>
>                 Key: CDI-494
>                 URL: https://issues.jboss.org/browse/CDI-494
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Events
>    Affects Versions: 1.2.Final
>            Reporter: Jozef Hartinger
>             Fix For: 2.0 (discussion)
>
>
> This is implicit but I've seen people confused about this several times. See e.g. https://issues.jboss.org/browse/WELD-1799



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the cdi-dev mailing list