Croway commented on PR #30077:
URL: https://github.com/apache/camel/pull/30077#issuecomment-6899374058
@davsclaus
1. Done in 866b41a5e719: the sentence now says "the data format does not
look up", and both type conversion sections say the type converter uses the
single `ObjectMapper` in the registry without `autoDiscoverObjectMapper`, and
not the data format options. This holds for all its `JsonNode` converters, not
only when `CamelJacksonEnableTypeConverter` is on: they call
`resolveObjectMapper()` too (camel-jackson and camel-jackson3 alike). Checked
with a local test: a single lenient mapper in the registry is used by
`convertTo(JsonNode.class, "{'a':1}")` with no option set.
2. Done in 866b41a5e719, for both pages: `findByType` matches subclasses,
and `XmlMapper` extends `ObjectMapper` in Jackson 2.23.0 and 3.2.4. In Jackson
3, the `JsonMapper` that Spring Boot provides is itself a subclass, so a
`JsonMapper` plus an `XmlMapper` also makes two. The same test with a second
mapper bean of a subclass shows that neither is used.
_Claude Code on behalf of Federico Mariani_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]