Skip to content

Commit

Permalink
No public key serializer overriding for checkpointing
Browse files Browse the repository at this point in the history
  • Loading branch information
blsemo committed Nov 9, 2017
1 parent 89b01ab commit 26819bf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ abstract class AbstractKryoSerializationScheme : SerializationScheme {
val field = Kryo::class.java.getDeclaredField("classResolver").apply { isAccessible = true }
serializer.kryo.apply {
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)
register(ClosureSerializer.Closure::class.java, CordaClosureSerializer)
classLoader = it.second
Expand Down

0 comments on commit 26819bf

Please sign in to comment.