fury
fury copied to clipboard
We get "org.apache.fory.exception.SerializationException: java.lang.RuntimeException: Create sequential serializer failed, class: class Change" when upgrading from 0.12.0 to 0.12.2
Search before asking
- [x] I had searched in the 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)
.withCompatibleMode(CompatibleMode.SCHEMA_CONSISTENT)
.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!