davsclaus commented on PR #28520:
URL: https://github.com/apache/camel/pull/28520#issuecomment-6415267770
@oscerd thanks for the review. About the non-blocking point:
Confirmed: `JsonObject.toJson()`/`JsonArray.toJson()` write to a
`StringWriter` (the `IOException` is swallowed there and can't happen anyway).
Each value goes through `Jsoner.serialize`, whose only throw for a value it
can't write is `IllegalArgumentException` ("isn't JSON serializable",
`Jsoner.java:1170`). Anything else, such as a custom `Jsonable` throwing from
its own `toJson` or a structure that contains itself, is a bug that should
surface, so the catch is kept narrow on purpose.
_Claude Code on behalf of davsclaus_
--
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]