davsclaus opened a new pull request, #26710: URL: https://github.com/apache/camel/pull/26710
Fixes https://issues.apache.org/jira/browse/CAMEL-24880 `GroupedBodyAggregationStrategy` collects the bodies into the `GroupedExchangeList` of `AbstractListAggregationStrategy`, whose `toString()` answered `List<Exchange>(2 elements)` whatever the elements were. A route that aggregates with the grouped body strategy and logs `${body}` showed that instead of the list of bodies: ``` INFO ... aggregator.camel.yaml:43 : Shipment for ORD-1001 complete: List<Exchange>(2 elements) ``` The short form was meant to keep a list of exchanges out of the log, which is right for `GroupedExchangeAggregationStrategy`. The list now prints as a plain list unless its elements are exchanges. Tests: the grouped body test asserts `[A, B, C]`, the grouped exchange test asserts the short form is kept. Seen in the route/aggregator example of camel-jbang-examples, whose README says to log the shipment before marshalling it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj -- 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]
