mirror of
https://github.com/corda/corda.git
synced 2024-12-22 06:17:55 +00:00
Make constructors always accessible to deserialization code. (#1320)
This commit is contained in:
parent
412a54d5ac
commit
db07d717e0
@ -19,6 +19,7 @@ class ObjectSerializer(val clazz: Type, factory: SerializerFactory) : AMQPSerial
|
||||
init {
|
||||
val kotlinConstructor = constructorForDeserialization(clazz)
|
||||
javaConstructor = kotlinConstructor?.javaConstructor
|
||||
javaConstructor?.isAccessible = true
|
||||
propertySerializers = propertiesForSerialization(kotlinConstructor, clazz, factory)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user