Skip to content

API deprecation update for KotlinModule - #744

Merged
k163377 merged 8 commits into
FasterXML:2.17from
k163377:fix-ctor
Dec 30, 2023
Merged

API deprecation update for KotlinModule#744
k163377 merged 8 commits into
FasterXML:2.17from
k163377:fix-ctor

Conversation

@k163377

@k163377 k163377 commented Dec 30, 2023

Copy link
Copy Markdown
Contributor

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
@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.

1 participant