Skip to content

Conversation

@JacksonJang
Copy link
Contributor

Issue: #1654

I resolved it.

@JacksonJang
Copy link
Contributor Author

Minor cleanup: removed extra whitespace in noTypeInfoOverrideSer and noTypeInfoOverrideDeser for consistency.

if (_property == null) {
return true;
}
JsonTypeInfo typeInfo = _property.getAnnotation(JsonTypeInfo.class);
Copy link
Member

@cowtowncoder cowtowncoder Dec 6, 2025

Choose a reason for hiding this comment

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

This is too expensive call to make during actual reading -- that information needs to be gathered when constructing or initializing TypeDeserializer instance.

Also: direct annotation access should be avoided: all access must be through AnnotationIntrospector (to allow for mix-in annotations, support for non-Jackson annotations (like JAXB))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the kind explanation :)

I’ll review the changes you suggested in the PR and update my work accordingly
#5477

@JacksonJang
Copy link
Contributor Author

@cowtowncoder
Thanks a lot for the detailed review and for opening #5477!

I’ve taken a look at your more comprehensive approach there, and I fully agree that it’s a better overall direction for fixing #1654 (especially with the dedicated NoOp type (de)serializers and handling in TypeResolverProvider).

I’m happy to have this PR closed in favor of #5477 if that makes things simpler.

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