[cdi-dev] [JBoss JIRA] (CDI-611) Enhance 10.3.3. Multiple event qualifiers section

Antoine Sabot-Durand (JIRA) issues at jboss.org
Thu Jul 28 09:50:00 EDT 2016


     [ https://issues.jboss.org/browse/CDI-611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Sabot-Durand updated CDI-611:
-------------------------------------
    Fix Version/s: 2.0-EDR2


> 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
>             Fix For: 2.0-EDR2
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the cdi-dev mailing list