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

keep old constructor for backward compatibility #4919

Closed
wants to merge 2 commits into from

Conversation

OlegDokuka
Copy link
Member

followup to #4661 to preserve backward compatibility

@@ -1094,6 +1094,11 @@ public Case withBody(J body) {
@With
Expression guard;

@JsonCreator
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if having 2 JsonCreators works and/or is necessary

@Laurens-W
Copy link
Contributor

@knutwannheden what do you think? Should we introduce this overloading?

@timtebeek timtebeek marked this pull request as draft January 17, 2025 16:28
@timtebeek
Copy link
Contributor

As discussed on Slack

I think I would not merge this. Historically we have not added backwards compatibility constructors like this and having two constructors annotated with @JsonCreator makes me a bit nervous, too.

@timtebeek timtebeek closed this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants