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

API deprecation update for KotlinModule #744

Merged
merged 8 commits into from Dec 30, 2023
Merged

Conversation

k163377
Copy link
Contributor

@k163377 k163377 commented Dec 30, 2023

If the primary constructor of a KotlinModule is called directly, bytecode compatibility problems can occur.
For this reason, this has been marked as Deprecated for quite some time.

This change raises the DeprecationLevel to error and sets the privatization schedule to 2.18.
In addition, hidden constructors and other builder functions marked as Deprecated that have long been left out for compatibility purposes are also marked for removal in 2.18.

At the same time, a hidden no-argument constructor has been added to facilitate initializing KotlinModule via reflection.
This is useful in situations where Java libraries initialize KotlinModule via reflection.
However, the Builder method of initialization is still recommended for normal use cases.

@k163377 k163377 merged commit 63b0819 into FasterXML:2.17 Dec 30, 2023
12 checks passed
@k163377 k163377 deleted the fix-ctor branch December 30, 2023 08: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
Development

Successfully merging this pull request may close these issues.

None yet

1 participant