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

Fix #4724 (delegating creator, Records) #4740

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

cowtowncoder
Copy link
Member

No description provided.

@cowtowncoder
Copy link
Member Author

@JooHyukKim I think this is a bit better way to fix #4724; fortunately #4731 helped a lot in figuring out what is actually going on. I am not super happy with the block of code I changed but it has to do for now.

@cowtowncoder
Copy link
Member Author

Ok, did tiny bit of refactoring to -- I hope -- streamline code a bit, to make it bit easier to follow.

@cowtowncoder cowtowncoder merged commit 2193138 into 2.18 Oct 9, 2024
9 checks passed
@cowtowncoder cowtowncoder deleted the tatu/2.17/4724-fix-delegating-creator branch October 9, 2024 03:02
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.databind.testutil.DatabindTestUtil;
import com.fasterxml.jackson.databind.testutil.failure.JacksonTestFailureExpected;

import org.junit.jupiter.api.Test;

// [databind#4724] Deserialization behavior change with Java Records, JsonCreator and JsonValue between 2.17.2 => 2.18.0
public class RecordJsonCreatorAndJsonValue4724Test
Copy link
Member

Choose a reason for hiding this comment

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

I was thinking we should start building habit of moving fixed /tofix tests out of /tofix package :))

Copy link
Member Author

Choose a reason for hiding this comment

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

We do, but I'll do that after merging PR -- there's merge conflict when moving.

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.

2 participants