HsinDumas opened a new issue, #2210:
URL: https://github.com/apache/fury/issues/2210

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/fury/issues) 
and found no similar issues.
   
   
   ### Version
   
   JDK 17
   Fury 0.10.0
   OS: Macos、Linux
   
   ### Component(s)
   
   Java
   
   ### Minimal reproduce step
   
   `
   public class FuryTest {
       private static final ThreadSafeFury FURY = new 
ThreadLocalFury((ClassLoader classLoader) -> {
           Fury build = Fury.builder()
                   .withLanguage(Language.JAVA)
                   .withClassLoader(classLoader)
                   .withCompatibleMode(CompatibleMode.COMPATIBLE)
                   .build();
           build.register(Son.class, (short) 1000, true);
           build.register(Father.class, (short) 1001, true);
           return build;
       });
   
       @Test
       void testFury() {
           Son son = new Son();
           son.setA(1);
           son.setB(2);
           son.setC(3);
           byte[] serialize = FURY.serialize(son);
           System.out.println(Base64.encode(serialize));
       }
   
       @Data
       public static class Father {
           private Integer a;
           private Integer b;
       }
   
       @EqualsAndHashCode(callSuper = true)
       @Data
       public static class Son extends Father {
           private Integer c;
       }
   }
   `
   
   ### What did you expect to see?
   
   When I remove the B field of the Father class, Fury should deserialize the A 
field of the Father
   
   `
       @Data
       public static class Father {
           private Integer a;
       }
   
       @EqualsAndHashCode(callSuper = true)
       @Data
       public static class Son extends Father {
           private Integer c;
       }`
   
   ### What did you see instead?
   
   {"c":3}
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


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