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

Event qualifiers are lost during event propagation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.1.1.Final, 2.2.0.Alpha1
    • 2.1.0.Final
    • Events
    • None
    • Hide

      clone and build the following repositories/branches:

      https://github.com/forge/furnace [master]
      https://github.com/forge/furnace-cdi [features/FORGE-1271]

      Run the following test:
      test.org.jboss.forge.furnace.events.AddonEventPropagationFromOriginTest.testEventPropagationAcrossContainers()

      This was working with Weld 2.0.3.Final, and has subsequently stopped working after the upgrade.

      Good places to set breakpoints:

      org.jboss.forge.furnace.container.cdi.events.EventManagerImpl:37

      This should propagate all qualifiers, but as can be seen, when EventPayload3 is fired with @Named("2"), the qualifier is lost, thus the corresponding observer method is not triggered:

      test.org.jboss.forge.furnace.mocks.event.EventService.handleRemoteResponse(...):40

      Show
      clone and build the following repositories/branches: https://github.com/forge/furnace [master] https://github.com/forge/furnace-cdi [features/FORGE-1271] Run the following test: test.org.jboss.forge.furnace.events.AddonEventPropagationFromOriginTest.testEventPropagationAcrossContainers() This was working with Weld 2.0.3.Final, and has subsequently stopped working after the upgrade. Good places to set breakpoints: org.jboss.forge.furnace.container.cdi.events.EventManagerImpl:37 This should propagate all qualifiers, but as can be seen, when EventPayload3 is fired with @Named("2"), the qualifier is lost, thus the corresponding observer method is not triggered: test.org.jboss.forge.furnace.mocks.event.EventService.handleRemoteResponse(...):40

    Description

      I believe this is a regression in the latest Weld release, as this was working in Weld 2.0.3.Final. Steps to reproduce included in issue.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-jharting Jozef Hartinger
              lincolnthree Lincoln Baxter III (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: