oscerd opened a new pull request, #26976: URL: https://github.com/apache/camel/pull/26976
Backport of #26781 to `camel-4.18.x`. Straight port of the code change — `NettyConverter.toByteArray` now returns a copy of exactly the buffer's readable region via `ByteBufUtil.getBytes(buffer)` (see #26781 / CAMEL-24936 for the rationale). The `NettyConverter.java` and `NettyConverterTest.java` changes are identical to the merged commit (the added test keeps this branch's JUnit 5 `CamelTestSupport` import); the only difference is the upgrade-guide note, which is omitted because `camel-4x-upgrade-guide-4_23.adoc` lives on `main` only. `mvn clean install -pl components/camel-netty` is green on this branch. _Claude Code on behalf of oscerd_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
