Croway opened a new pull request, #30010: URL: https://github.com/apache/camel/pull/30010
JIRA: [CAMEL-26982](https://issues.apache.org/jira/browse/CAMEL-26982) - `TypeConverterRegistry.addTypeConverters(Object)` kept only the class of the given object, so non-static `@Converter` methods ran on a new instance created by the injector: a class without a no-arg constructor failed at conversion time, and a configured instance was silently replaced by a default one. - `TypeConvertersLoader` now seeds the `CachingInjector` with the given instance (and sets the `CamelContext` on it when it is `CamelContextAware`); the `Class` overload still uses the injector. Tests: `TypeConvertersTest#testAddInstanceWithoutDefaultConstructor` and `#testAddConfiguredInstance` (regular and fallback converter methods). Upgrade guide: 4.24 entry "camel-core - addTypeConverters uses the given instance". _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]
