Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WELD-2742 Avoid firing PIT multiple times if previously specialized bean was re-enabled #2833

Merged
merged 1 commit into from Apr 19, 2023

Conversation

manovotn
Copy link
Contributor

JIRA - https://issues.redhat.com/browse/WELD-2742

Relevant CDI spec part - https://jakarta.ee/specifications/cdi/4.0/jakarta-cdi-spec-4.0.html#bean_discovery_steps_full
PIT should be fired once and regardless of whether the bean is enabled or not whereas PP and PBA are conditional and only fired for enabled beans.

I've altered an existing test so that it captures how many times we fire PIT<Bravo>.
Before the change, this was twice (we re-fired PIT for each re-enabled bean), now it is correctly only once.

@manovotn manovotn requested a review from mkouba April 14, 2023 11:45
@manovotn manovotn merged commit 3e58755 into weld:master Apr 19, 2023
11 checks passed
@manovotn manovotn deleted the weld2742 branch April 19, 2023 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants