[cdi-dev] [JBoss JIRA] (CDI-422) Wrong example for event qualifier types with members
Martin Kouba (JIRA)
issues at jboss.org
Wed Mar 5 04:31:34 EST 2014
[ https://issues.jboss.org/browse/CDI-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12950094#comment-12950094 ]
Martin Kouba commented on CDI-422:
----------------------------------
I've updated the pull request with proposed changes.
> 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
> Assignee: Martin Kouba
> Priority: Minor
> Labels: CDI_spec_chge
> 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