]
Antoine Sabot-Durand reassigned CDI-422:
----------------------------------------
Assignee: Martin Kouba
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: