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

Fixed a binary compatibility error when using a higher version of KotlinModule #527

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

k163377
Copy link
Contributor

@k163377 k163377 commented Nov 18, 2023

Since 2.11, KotlinModule recommends initialization with Builder.
If initialization is done by primary constructor calls with default arguments, subsequent option additions will cause problems such as #526.

In local verification, this resolved #526.

@@ -31,7 +31,7 @@ import java.sql.Types
*/
public val sharedObjectMapper: ObjectMapper = ObjectMapper()
.registerModule(KtormModule())
.registerModule(KotlinModule())
.registerModule(kotlinModule())

Choose a reason for hiding this comment

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

Shouldn't this be the following?
.registerModule(KotlinModule.Builder().build())

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link

Choose a reason for hiding this comment

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

@arnodenuijl , could you check the answer from @k163377 and review again?

Choose a reason for hiding this comment

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

Hi. Sadly it's not mine to merge. I just commented because I had the same issue and didn't understand the fix. But it's not my repo and I don't have any rights on it.

@jimmimimmi
Copy link

Hi @arnodenuijl
Is there a possibility for this PR to be merged?

@jimmimimmi
Copy link

Hi @vincentlauvlwj can you have a look please?

@k163377
Copy link
Contributor Author

k163377 commented May 13, 2024

@vincentlauvlwj
Could you please check this PR?

@vincentlauvlwj
Copy link
Member

@vincentlauvlwj

Could you please check this PR?

Yes, of course. So sorry for the late response.

@jacobhume
Copy link

Would love to see this PR merged and released; many projects are moving on to higher versions of jackson over time, including spring boot requiring it now in 3.3.

@aukolov
Copy link

aukolov commented May 31, 2024

It would be great to get this PR merged, we are stuck with old versions ktor and other stuff because of the breaking change in jackson.

@jacobhume
Copy link

Wanted to try to ping @vincentlauvlwj again to see if we can get a merge and release for this, to unblock jackson upgrades?

@vincentlauvlwj vincentlauvlwj changed the base branch from master to dev June 24, 2024 06:34
@vincentlauvlwj vincentlauvlwj merged commit f395aa6 into kotlin-orm:dev Jun 24, 2024
@vincentlauvlwj
Copy link
Member

Merged into the dev branch, will release in next weeks.

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.

Not compatible with jackson-module-kotlin v2.16.0
6 participants