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

defaulting the deprecated methods in Coercing #3063

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

bbakerman
Copy link
Member

Because Coercing is a SPI, leaving the deprecated methods undefaulted means that people MUST implement the old methods even though they won't be called

This defaults them. It does introduce possible confusion since no methods needs to be implemented like before however this is clear in reality - You need to implement the non deprecated methods and if you don't it will throw an exception

@bbakerman bbakerman added this to the 21.0 milestone Dec 28, 2022
Copy link

@Ernir Ernir left a comment

Choose a reason for hiding this comment

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

Tried this out locally in the project mentioned in this discussion, this provides the migration path I was looking for. :)

Looking forward to this release, thanks a lot!

@bbakerman bbakerman merged commit 2b29739 into master Jan 30, 2023
@andimarek andimarek modified the milestones: 21.0, April 2023 Mar 21, 2023
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.

4 participants