Skip to content

Conversation

@JacksonJang
Copy link
Contributor

Issue: #1654
Reference: #5477

Thanks to your PR, I was able to resolve this issue easily!

Modified BasicDeserializerFactory.createCollectionDeserializer() to skip TypeDeserializer lookup when contentDeser (from contentUsing) is already specified:

TypeDeserializer contentTypeDeser = null;
if (contentDeser == null) {
    contentTypeDeser = (TypeDeserializer) contentType.getTypeHandler();
    if (contentTypeDeser == null) {
        contentTypeDeser = ctxt.findTypeDeserializer(contentType);
    }
}

This ensures that when a user explicitly specifies a custom content deserializer via @JsonDeserialize(contentUsing=...), the framework respects that choice and does not override it with type-based deserialization.

@JacksonJang
Copy link
Contributor Author

I'll try again and submit a new PR.

@JacksonJang JacksonJang closed this Dec 7, 2025
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