Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-7611

Serializing the deserailized KnowledgeBaseImpl object gives a byte array of different size

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.73.0.Final, 7.74.1.Final
    • core engine
    • None

      Getting a byte array of different size while serializing the KnowledgeBaseImpl object which was deserialized  from a previously serialized object. This is behavior is seen in Java 17. 

      In java 8 and 11, we used to get byte arrays of the same sizes. 
      Please look into this test for more https://github.com/maquebax/DroolsSerialization/tree/master

       

      Would like to know , if there is any work around for this behaviour, as it is essential for us to receive byte array of consistent size on multiple iterations of serializing & deserialzing the same KnowledgeBaseImple Object.

              mfusco@redhat.com Mario Fusco
              maquebax Vignesh S (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: