[cdi-dev] [JBoss JIRA] (CDI-422) Wrong example for event qualifier types with members

Martin Kouba (JIRA) issues at jboss.org
Fri Feb 21 03:37:47 EST 2014


Martin Kouba created CDI-422:
--------------------------------

             Summary: 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


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