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

Remove @Override annotations from to-be-removed API methods and replace BM#fireEvent calls #24271

Merged
merged 1 commit into from
Mar 13, 2022

Conversation

manovotn
Copy link
Contributor

This will ease future transition to CDI 4 API. I didn't find any other occurrences of deprecated CDI APIs in Quarkus as such. That being said, external libs may still have them but that's not necessarily for us to fix.

For completeness, the removed methods in CDI 4 can be seen here - jakartaee/cdi#472
Most of them are not an issue for Quarkus as they are related to portable extensions in some way.

@manovotn manovotn requested review from Ladicek and mkouba March 11, 2022 12:33
@quarkus-bot quarkus-bot bot added the area/arc Issue related to ARC (dependency injection) label Mar 11, 2022
@@ -115,7 +115,7 @@ public void validate(InjectionPoint injectionPoint) {
throw new UnsupportedOperationException();
}

@Override
// Deprecated method which can be safely removed once we use CDI 4.0+
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd actually love to perform some logging here stating you should use a different approach but I am sort of expecting complaints from users seeing an info/warn messages all of sudden so I didn't do it yet.

@manovotn manovotn force-pushed the removeCdiDeprecatedCalls branch from 88daeaf to 7cdc30d Compare March 11, 2022 12:53
@manovotn manovotn force-pushed the removeCdiDeprecatedCalls branch from 7cdc30d to 89e383a Compare March 11, 2022 13:06
@manovotn manovotn requested a review from mkouba March 11, 2022 13:06
@mkouba mkouba added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Mar 11, 2022
@gsmet gsmet merged commit 7e76a47 into quarkusio:main Mar 13, 2022
@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Mar 13, 2022
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Mar 13, 2022
@manovotn manovotn deleted the removeCdiDeprecatedCalls branch March 14, 2022 00:15
@Sanne
Copy link
Member

Sanne commented Mar 17, 2022

FYI, related change by Brian in Hibernate ORM:

This is included in Quarkus via #24362

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/arc Issue related to ARC (dependency injection)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants