MC-2016 opened a new issue, #1976:
URL: https://github.com/apache/fury/issues/1976

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/fury/issues) 
and found no similar issues.
   
   
   ### Version
   
   fury 0.9.0
   Temurin 21.0.5 (x64)
   Windows 11 
   
   
   ### Component(s)
   
   Java
   
   ### Minimal reproduce step
   
   import org.apache.fury.*;
   import org.apache.fury.config.*;
   
   public class FuryRepro
   {
        public static class RecordA
        {
                private int                     int32 = 1;
        }
   
        public static class RecordB
        {
                private int                     int32 = Integer.MAX_VALUE;
        }
   
        public static class RecordC
        {
                private int[]           intArray = { 1 };
        }
   
        public static class RecordD
        {
                private int[]           intArray = { Integer.MAX_VALUE };
        }
   
        public static void main(String[] args)
        {
                Fury fury = Fury.builder()
                        .withLanguage(Language.JAVA)
                        .withIntCompressed(true)
                        .withCompatibleMode(CompatibleMode.SCHEMA_CONSISTENT)
                        .requireClassRegistration(true)
                        .build();
                fury.register(RecordA.class);
                fury.register(RecordB.class);
                fury.register(RecordC.class);
                fury.register(RecordD.class);
   
                System.out.printf("A: %d%n", fury.serialize(new 
RecordA()).length);
                System.out.printf("B: %d%n", fury.serialize(new 
RecordB()).length);
                System.out.printf("C: %d%n", fury.serialize(new 
RecordC()).length);
                System.out.printf("D: %d%n", fury.serialize(new 
RecordD()).length);
        }
   }
   
   
   ### What did you expect to see?
   
   The values inside `int[]` arrays compressed, just like the values of `int` 
fields.
   
   ### What did you see instead?
   
   A: 5
   B: 9
   C: 10
   D: 10
   
   The values of `int` fields are compressed as expected, but the values inside 
`int[]` arrays are _not_.
   
   ### 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