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

Martin Kouba (JIRA) jira-events at lists.jboss.org
Fri Sep 7 07:18:33 EDT 2012

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

Martin Kouba commented on CDI-236:

I wonder whether {{@Inject Instance<?>}} (and possibly {{@Inject Instance<T>}}) should be forbidden too?
> 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
>            Assignee: Pete Muir
>            Priority: Minor
>             Fix For: 1.1.PRD
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

More information about the cdi-dev mailing list