Skip to content

Conversation

@manovotn
Copy link
Contributor

@manovotn manovotn commented Sep 2, 2025

Related to quarkusio/quarkus#49834 (comment)

From what I can see, these two annotations have no real effect; the parent class is not even a CDI bean (since you are using annotated discovery mode and it bears no bean defining annotation).
It should therefore be safe to remove them.

In Quarkus, the specialization annotation would have been just ignored up until the above linked PR.
In CDI Full (such as Weld in WFLY) it would be taken into consideration but again, the parent class isn't a bean so there is nothing to specialize.
The @Priority also seems redundant as that's used for alternatives which is not the case of this class/bean either.

The only other case I can think of would be some heavy extension-based modification in application servers that I am unaware of - so I am hoping the CI here would expose those :)

@phillip-kruger
Copy link
Member

Happy from my side, I just want @jmartisk to also review

@jmartisk jmartisk merged commit bbfecb9 into smallrye:main Sep 3, 2025
5 checks passed
@github-actions github-actions bot added this to the 2.12.3 milestone Sep 3, 2025
@manovotn manovotn deleted the simplifyCdiSrContext branch September 3, 2025 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants