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

Event qualifiers are lost during event propagation

    Details

    • Steps to Reproduce:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jharting Jozef Hartinger
                  Reporter:
                  lincolnthree Lincoln Baxter III
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: