-
Bug
-
Resolution: Done
-
Major
-
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