Make constructors always accessible to deserialization code. (#1320)

This commit is contained in:
Rick Parker 2017-08-24 17:33:09 +01:00 committed by GitHub
parent 412a54d5ac
commit db07d717e0

View File

@ -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)
}