[cdi-dev] [JBoss JIRA] Commented: (CDI-169) Remove the 'No type variable in event objects' restriction

Martin Kouba (JIRA) jira-events at lists.jboss.org
Tue Sep 27 09:26:28 EDT 2011


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

Martin Kouba commented on CDI-169:
----------------------------------

I still don't understand where the bug is. Does spec forbid use of parametrized type as an event payload or not? Right now Weld detects problems on user-defined events only (not container lifecycle events). It's confusing but I'm not sure it is bug.

> Remove the 'No type variable in event objects' restriction
> ----------------------------------------------------------
>
>                 Key: CDI-169
>                 URL: https://issues.jboss.org/browse/CDI-169
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>    Affects Versions: 1.0
>            Reporter: Stuart Douglas
>             Fix For: 1.1 (Proposed)
>
>
> CDI 10.1 states:
> An event object is an instance of a concrete Java class with no type variables. ... An event type may not contain a type variable.
> Which seems silly considering the container fires events with a type variable at startup. I can't think of any reason why this should be prohibited. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cdi-dev mailing list