davsclaus opened a new pull request, #23717: URL: https://github.com/apache/camel/pull/23717
## Summary Fixes [CAMEL-23674](https://issues.apache.org/jira/browse/CAMEL-23674): The export silent run fails on non-stubbed components (like `timer`) when property placeholders resolve to `@@CamelMagicValue@@` and the target type is `java.time.Duration`. ## Root Cause The `ExportTypeConverter` already handles `Duration` conversion, but it was only registered as a **fallback** converter. The built-in `DurationConverter` (a direct `@Converter`) runs first and throws `NumberFormatException` when trying to parse `@@CamelMagicValue@@`, preventing the fallback from ever being tried. ## Fix Register the `ExportTypeConverter` explicitly for `Duration.class` (and `Short.class` which was also missing) so it takes priority over the built-in converters during export, matching the existing pattern for `Integer`, `Long`, `Double`, `Float`, `Byte`, and `Boolean`. ## Test Plan - [x] `ExportTest.shouldGenerateJavaContent` — previously failing on all 3 runtime variants (Quarkus, Spring Boot, Camel Main), now passes - [x] Full reactor build passes _Claude Code on behalf of Claus Ibsen_ -- 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]
