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 reflection registration issue with Jackson's @JsonSerialize & @JsonDeserialize #17049

Merged
merged 1 commit into from
May 7, 2021

Conversation

kdubb
Copy link
Contributor

@kdubb kdubb commented May 6, 2021

This is a follow up to PR #12387.

It registers the rest of the “using” options (keyUsing, contentUsing, nullsUsing) for both @JsonSerialize and @JsonDeserialize

@kdubb
Copy link
Contributor Author

kdubb commented May 6, 2021

@gsmet @geoand As the author of #12387 I assume you are a good person to approve this. It essentially copies your work but for more Jackson "using" options.

…onDeserialize

This is a follow up to PR quarkusio#12387.

It registers the rest of the “using” options (`keyUsing`, `contentUsing`, `nullsUsing`) for both `@JsonSerialize` and `@JsonDeserialize`
@geoand geoand added the triage/waiting-for-ci Ready to merge when CI successfully finishes label May 6, 2021
@machi1990 machi1990 merged commit 001f4fe into quarkusio:main May 7, 2021
@quarkus-bot quarkus-bot bot added this to the 2.0 - main milestone May 7, 2021
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label May 7, 2021
// the Deserializers are constructed internally by Jackson using a no-args constructor
reflectiveClass
.produce(new ReflectiveClassBuildItem(false, false, contentUsingValue.asClass().name().toString()));
}
Copy link
Member

Choose a reason for hiding this comment

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

Don't we need to also consider all the others (converters, as...)? Not sure about as but the 2 converter properties look like something we should take into account.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was wondering the same. I can make another PR and add them.

// the Deserializers are constructed internally by Jackson using a no-args constructor
reflectiveClass
.produce(new ReflectiveClassBuildItem(false, false, nullsUsingValue.asClass().name().toString()));
}
Copy link
Member

Choose a reason for hiding this comment

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

Same question here.

@kdubb kdubb deleted the fix/jackson_usings branch May 17, 2021 13:37
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

4 participants