urlyy commented on issue #2794:
URL: https://github.com/apache/fory/issues/2794#issuecomment-3424633045

   Currently has a usage limitation: register must be called in a specific 
order — field type must be registered first.
   
   This is because `register()` creates `type_info`, and if `TypeA` contains a 
field of type `TypeB`, then calling `register(TypeA)` before `TypeB ` will 
cause an error, since the `type_resolver` won’t be able to find the `type_info` 
for `TypeB ` in `TypeInfo::new::< TypeA >`.
   


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