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

ProcessInjectionTarget is fired multiple times if PBA.veto() is used for specialized bean

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.1.1.Final
    • 5.1.0.Final
    • Extensions
    • None

      I do believe this is a bug, but I might be missing something.

      For a deployment with beans A and B where B @Specializes A, if you veto() PBA<B>, you can now observe dual notification for PIT<A>.

      Here is the relevant code - link.
      We should IMO extract PIT invocation outside of this method which is re-invoked if you veto specialized bean (link).

      There is a TCK test where this behavior can be spotted if you add an observer for PIT<Bravo>>, see org.jboss.cdi.tck.tests.full.extensions.lifecycle.processBeanAttributes.specialization.VetoTest.

            manovotn Matěj Novotný
            manovotn Matěj Novotný
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: