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

Incorrect producer field inheritance in presence of an extension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.1.3.Final, 6.0.0.Beta1
    • 5.1.2.Final, 6.0.0.Alpha1
    • None
    • None

      Suppose there is a bean A which has a field producer for some type X and a bean B which extends A.
      Then add a portable extension with @Observes ProcessedAnnotatedType<?> pat and inside it invoke pat.configureAnnotatedType().
      A reproducer is here - https://github.com/manovotn/core/tree/reproduce2903

      In such a scenario, there will be two definitions of bean X as if the producer field was inherited.

      The offending line seems to be the invocation of pat.configureAnnotatedType(); removing that makes the test pass.

      Originally reported via https://github.com/weld/core/pull/2903

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

                Created:
                Updated:
                Resolved: