alanlit opened a new issue, #3622:
URL: https://github.com/apache/fory/issues/3622

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/fory/issues) 
and found no similar issues.
   
   
   ### Version
   
   ```
   public record GetEmailsRequestMsg(
       String lensId,
       Long from,
       Long to,
       Integer type
   ) implements Serializable {}
   ```
   Fails/corrupts with:
   ```
   Fory.builder()
       .withLanguage(Language.JAVA)
       .requireClassRegistration(false)
       .withCompatibleMode(CompatibleMode.COMPATIBLE)
       .withClassVersionCheck(true)
       .build(); // codegen enabled
   ```
   Works with either
   `.withCodegen(false)`
   
   Or 
   
   ```
   public record GetEmailsRequestMsg(
       String lensId,
       long from,
       long to,
       int type
   ) implements Serializable {}
   ```
   
   JDK 25 and org.apache.fory:fory-core:0.15.0
   
   
   
   ### Component(s)
   
   Java
   
   ### Minimal reproduce step
   
   Pretty much the above
   
   ### What did you expect to see?
   
   Deserialized object whose field values match the original
   
   ### What did you see instead?
   
   Corrupt data. The Longs had what appeared to be random values - the Integer 
type was initialized to 0 and came back 146 and the String lensId which was 
originally a pair of uuids joined with ':' seemed to return a substring of one 
of the uuids
   
   ### 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