corda / net.corda.core.serialization / SerializationContext / preventDataLoss

preventDataLoss

abstract val preventDataLoss: Boolean

If true the serialization evolver will fail if the binary to be deserialized contains more fields then the current object from the classpath.

The default is false.