chaokunyang commented on issue #2559:
URL: https://github.com/apache/fory/issues/2559#issuecomment-3243589851
As you can see from ObjectArraySerializer:
```java
Fory fory = this.fory;
ClassResolver classResolver = fory.getClassResolver();
ClassInfo classInfo = null;
Class<?> elemClass = null;
for (T t : arr) {
if (!refResolver.writeRefOrNull(buffer, t)) {
Class<?> clz = t.getClass();
if (clz != elemClass) {
elemClass = clz;
classInfo = classResolver.getClassInfo(clz);
}
fory.writeNonRef(buffer, t, classInfo);
}
}
```
If the elements in your object array has different types, `getClassInfo`
will be invoked. Maybe there are some objects of new types in your object array
--
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]