[
https://issues.jboss.org/browse/CDI-7?page=com.atlassian.jira.plugin.syst...
]
John Ament commented on CDI-7:
------------------------------
Mark,
To understand, you also have to consider the qualified event. Take these two events.
a: @Inject @QualA @QualB Event<MyEvent> evt;
b: @Inject @QualA Event<MyEvent> evtA;
and the following observers
c: void doManyDings(@Observes @QualA @QualB MyEvent ev) {...}
d: void doSomeDing(@Observes @QualA MyEvent ev) {...}
if b is fired, only d is observed.
if a is fired, both c and d are observed.
My preference would be that a firing, results in only c being observed. b firing and d
observed only.
Section 10.2, bullet 3, first paragraph contradicts the rest of the
section
---------------------------------------------------------------------------
Key: CDI-7
URL:
https://issues.jboss.org/browse/CDI-7
Project: CDI Specification Issues
Issue Type: Bug
Components: Events
Affects Versions: 1.0
Reporter: Pete Muir
Priority: Blocker
Fix For: 1.1 (Proposed)
"The observer method has all the event qualifiers."
This contradicts the examples (section 10.2.3) and the use of @Any, all of which indicate
that less specific observer methods are also invoked.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira