mirror of
https://github.com/corda/corda.git
synced 2024-12-19 13:08:04 +00:00
No public key serializer overriding for checkpointing
This commit is contained in:
parent
89b01ab342
commit
26819bfd04
@ -54,7 +54,8 @@ abstract class AbstractKryoSerializationScheme : SerializationScheme {
|
|||||||
val field = Kryo::class.java.getDeclaredField("classResolver").apply { isAccessible = true }
|
val field = Kryo::class.java.getDeclaredField("classResolver").apply { isAccessible = true }
|
||||||
serializer.kryo.apply {
|
serializer.kryo.apply {
|
||||||
field.set(this, classResolver)
|
field.set(this, classResolver)
|
||||||
DefaultKryoCustomizer.customize(this, publicKeySerializer)
|
// don't allow overriding the public key serializer for checkpointing
|
||||||
|
DefaultKryoCustomizer.customize(this)
|
||||||
addDefaultSerializer(AutoCloseable::class.java, AutoCloseableSerialisationDetector)
|
addDefaultSerializer(AutoCloseable::class.java, AutoCloseableSerialisationDetector)
|
||||||
register(ClosureSerializer.Closure::class.java, CordaClosureSerializer)
|
register(ClosureSerializer.Closure::class.java, CordaClosureSerializer)
|
||||||
classLoader = it.second
|
classLoader = it.second
|
||||||
|
Loading…
Reference in New Issue
Block a user