[cdi-dev] [JBoss JIRA] (CDI-236) Injection point of type Instance/Event must have a type parameter

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu Aug 16 08:26:15 EDT 2012


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

Pete Muir commented on CDI-236:
-------------------------------

IMO it should be a definition error.
                
> Injection point of type Instance/Event must have a type parameter
> -----------------------------------------------------------------
>
>                 Key: CDI-236
>                 URL: https://issues.jboss.org/browse/CDI-236
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Events, Resolution
>    Affects Versions: 1.0
>            Reporter: Martin Kouba
>            Priority: Minor
>             Fix For: 1.1 (Proposed)
>
>
> IMHO this is not implied. One could think *{{@Inject Instance instance}}* is equivalent to *{{@Inject Instance<Object> instance}}*. 
> Note that RI (Weld) does not allow this at the moment and treats *{{@Inject Instance instance}}* or *{{@Inject Event event}}* as a definition error.
> In any case the spec should clarify this so that we could write valid TCK tests for this.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cdi-dev mailing list