You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Synthetic bean priorities interfere with other beans sharing the same bean class #3541
Looking up Service should select B, which has priority 15. Instead, Weld selects A: it uses C’s priority of 20 because A and C share their bean class. Removing C restores the expected result.
Two competing synthetic beans sharing a bean class can also resolve ambiguously despite having different priorities.
A bean class is not a unique identifier for a synthetic bean. Each bean’s priority should be handled independently. This affects alternatives and reserves, registered either through a configurator or as custom beans implementing Prioritized.
Activity
Fix synthetic bean priority collisions (weld#3541)
manovotn commentedon Sep 30, 2026
Weld 7 - #3540
Weld 6 - #3542
Fix synthetic bean priority collisions (weld#3541)
Fix synthetic bean priority collisions (weld#3541)
Fix synthetic bean priority collisions (weld#3541)
Fix synthetic bean priority collisions (#3541)
Fix synthetic bean priority collisions (#3541)