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

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/fory/issues) 
and found no similar issues.
   
   
   ### Version
   
   0.12.2, and 0.12.3
   
   ### Component(s)
   
   Other
   
   ### Minimal reproduce step
   
   Kotlin test code:
   
   data class Change<T>(
       val old: T? = null,
       val new: T? = null
   )
   
   class TestFory {
       @Test
       fun foryError() {
           val fory = Fory
               .builder()
               .requireClassRegistration(true)
               .withCodegen(true)
               .withLanguage(Language.JAVA)
               .withRefTracking(false) // Better performance for simple objects
               .withCompatibleMode(CompatibleMode.SCHEMA_CONSISTENT) // For 
optimal performance
               .build()
   
           fory.register(Change::class.java)
   
           val change = Change("A", "B")
   
           val serializedChange = fory.serialize(change)
   
           val deserializedChange = fory.deserialize(serializedChange, 
Change::class.java)
   
           Assertions.assertEquals(change, deserializedChange)
       }
   }
   
   when I upgrade Fory from 0.12.1 to 0.12.2 or higher the test fails
   
   ### What did you expect to see?
   
   I expect the test case to work and not throw any exceptions
   
   ### What did you see instead?
   
   The test fails on the fory.serialize() call with:
   
   org.apache.fory.exception.SerializationException: 
java.lang.RuntimeException: Create sequential serializer failed, 
   class: class Change
   
   ### 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