]
Pete Muir closed WELD-226.
--------------------------
Resolution: Done
Assignee: Pete Muir
I think I had some brain fever when I apparently "fixed" this code before ;-)
Hopefully this is better!
'Default' event observer doesn't get notified when firing
events (with qualifiers) directly with the manager
------------------------------------------------------------------------------------------------------------
Key: WELD-226
URL:
https://jira.jboss.org/jira/browse/WELD-226
Project: Weld
Issue Type: Bug
Components: Events
Affects Versions: 1.0.0.CR1
Environment: Apache Tomcat 6.0.20
Reporter: Fabio Wang
Assignee: Pete Muir
Priority: Critical
Fix For: 1.0.0.CR2
An observer with this signature:
observe(@Observes XEvent event) {...}
is not notified when an event is fired like this:
manager.fireEvent(new XEvent(), new Qualifier1(), new Qualifier2(), ...);
If the observer specifies any of the Qualifiers (or any subset of them, except the empty
one), then it's notified.
However, if fired like this:
manager.fireEvent(new XEvent(), new DefaultLiteral(), new Qualifier1(), new Qualifier2(),
...);
with the DefaultLiteral among the qualifiers, then it works as expected.
Firing an event with an Event<XEvent> also works.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: