]
John Ament commented on CDI-611:
--------------------------------
The fact that event qualifiers and bean qualifiers don't work the same way is still an
issue for a number of developers I've worked with.
Enhance 10.3.3. Multiple event qualifiers section
-------------------------------------------------
Key: CDI-611
URL:
https://issues.jboss.org/browse/CDI-611
Project: CDI Specification Issues
Issue Type: Clarification
Components: Events
Affects Versions: 2.0-EDR1
Reporter: Matej Novotny
While the current spec is in fact correct, it is quite hard to decipher what it is
actually trying to convey.
Elsewhere in the spec, we talk about subsets of qualifiers while here we don't. There
is a code sample and a sentence saying *"Then this observer method will only be
notified if all the observed event qualifiers are specified when the event is
fired:"*
This can be interpreted as:
* _"I must fire an event with exactly the same qualifiers as this observer has in
order to notify it"_ (*wrong assumption* - it can have more qualifiers)
* _"I must fire an event which will contain at least the same qualifiers as this
observer has in order to notify it"_ (*correct* - yet not so obvious)
I will try to come up with some improvement to make this clear. As it is, it always takes
me several reading to soak it in.