ayush00git opened a new pull request, #4013:
URL: https://github.com/apache/fory/pull/4013

   ## What was the error
   Registering a root container with declared element types, e.g. 
`fory.register(Type.list(Type.float32()))`, silently returned the internal 
any-typed container serializer. The declared generics were discarded: elements 
were written with dynamic dispatch instead of the declared type, so declared 
`float32`/`int64` semantics were lost at the root while the same declaration 
worked as a struct field.
   
   ## What this PR fixes
   A root `Type.list`/`Type.set`/`Type.map` with declared element types now 
gets a dedicated generated serializer, bound to the returned root 
serialize/deserialize pair. It is kept out of the type-id keyed registry so 
dynamic container dispatch stays untouched. Regression tests cover root list, 
set, and map plus the dynamic-dispatch guard.


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