chaokunyang commented on PR #2852:
URL: https://github.com/apache/fory/pull/2852#issuecomment-3466818575

   @mengnankkkk  How about reuse `depth` field in `Fory` instance, you can set 
it to -1 by default, and when register any Serializer/Class, check whether 
`depth` is still -1. If it `>=` 0, it means serialize/deserialize has happened, 
then you can just thow exception. You can add this check in `TypeResolver`


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to