Moouna commented on issue #1893:
URL: https://github.com/apache/fury/issues/1893#issuecomment-2425752603

   It works.
   
   ```java
   Source source = new Source();
   source.setInner(new SourceInner());
   
   Fury furySerialize = Fury.builder()
           .withLanguage(Language.JAVA)
           .requireClassRegistration(false)
           .withClassVersionCheck(false)
           .withCodegen(true)
           .withCompatibleMode(CompatibleMode.COMPATIBLE)
           .withJdkClassSerializableCheck(false)
           .build();
   
   Fury furyDeserialize = Fury.builder()
           .withLanguage(Language.JAVA)
           .requireClassRegistration(false)
           .withClassVersionCheck(false)
           .withCodegen(true)
           .withCompatibleMode(CompatibleMode.COMPATIBLE)
           .withJdkClassSerializableCheck(false)
           .build();
   
   Short id = 3547;
   Short innerId = 3548;
   furySerialize.register(Source.class, id);
   furySerialize.register(SourceInner.class, innerId);
   furyDeserialize.register(Target.class, id);
   furyDeserialize.register(TargetInner.class, innerId);
   byte[] bytes = furySerialize.serializeJavaObject(source);
   Target target = furyDeserialize.deserializeJavaObject(bytes, Target.class);
   System.out.println(target);
   ```
   Do you have a more effective solution?I mean, when there are too many 
classes, registering them one by one is not very friendly for the project.


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