Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-226

'Default' event observer doesn't get notified when firing events (with qualifiers) directly with the manager

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 1.0.0.GA
    • 1.0.0.CR1
    • Events

    Description

      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.

      Attachments

        Activity

          People

            pmuiratbleepbleep Pete Muir (Inactive)
            fabiowg Fabio Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: