[cdi-dev] [JBoss JIRA] (CDI-422) Wrong example for event qualifier types with members
Antoine Sabot-Durand (JIRA)
issues at jboss.org
Tue Mar 4 05:03:33 EST 2014
[ https://issues.jboss.org/browse/CDI-422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Sabot-Durand updated CDI-422:
-------------------------------------
Fix Version/s: 1.2 Proposed
> Wrong example for event qualifier types with members
> ----------------------------------------------------
>
> Key: CDI-422
> URL: https://issues.jboss.org/browse/CDI-422
> Project: CDI Specification Issues
> Issue Type: Bug
> Components: Events
> Reporter: Martin Kouba
> Priority: Minor
> Fix For: 1.2 Proposed
>
>
> The following snippet in "10.2.2 Event qualifier types with members" is wrong:
> {code}
> public void login() {
> final User user = ...;
> loggedInEvent.fire( new LoggedInEvent(user),
> new RoleQualifier() { public String value() { return user.getRole(); } );
> }
> {code}
> {{javax.enterprise.event.Event.fire()}} method does not have qualifiers param. The example should either use {{Event.select(Annotation...)}} along with {{Event.fire()}} or {{BeanManager.fireEvent(Object, Annotation...)}}.
--
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