chaokunyang commented on code in PR #2701:
URL: https://github.com/apache/fory/pull/2701#discussion_r2428437538


##########
java/fory-core/src/main/java/org/apache/fory/Fory.java:
##########
@@ -177,11 +177,13 @@ public Fory(ForyBuilder builder, ClassLoader classLoader) 
{
   @Override
   public void register(Class<?> cls) {
     _getTypeResolver().register(cls);
+    TypeResolver.registerClassForGraalvm(cls, config.getConfigHash());

Review Comment:
   We don't need to handle this here. TypeResolver should do everything for 
registry. `ensureSerializersCompiled` will create serializer for every register 
class, you can add registerClassForGraalvm here



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