mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
cd73161513
* CORDA-2870 Add `reason` and `remedy` to `LocalTypeInformation.NonComposable` When creating `LocalTypeInformation.NonComposable` pass in the `reason` a type was not composable and the `remedy` to fix it. This required changes in `LocalTypeInformationBuilder` to pass in this extra information so that it can be used later. The message that the `ObjectSerializer` includes in its `NotSerializableException` now includes the extra information about the non composable type. * CORDA-2870 Include custom serializers in serialization error message In `ObjectSerializer`, when a serialization exception is thrown, include the registered custom serializers + their classloaders as part of the error message. This required making properties on `CustomSerializerRegistry` and `LocalSerializerFactory` public. Tidy up `LocalTypeInformationBuilder` error message text for transitive non-composable types. * CORDA-2870 Tidy up error thrown for unserializable objects Fix `DeserializeSimpleTypesTests` and tidy up the code in `ObjectSerializer` a bit. * CORDA-2870 Remove non-composable warning logs in `LocalTypeInformationBuilder` The flag `warnIfNonComposable` and its corresponding log lines are not needed now that the non-composable error messages contain a lot of information in them. The `warnIfNonComposable` flag is now incorrect and has been renamed to `validateProperties` and the function `suppressWarningsAnd` has been changed to `suppressValidation`. `propertyDescriptors` has also had its input boolean changed to `validateProperties` to better represent what it is doing. * CORDA-2870 Remove need for casting by moving variable to interface Expose `customSerializerNames` in `LocalSerializerFactory` and `CustomSerializerFactory`. |
||
---|---|---|
.. | ||
src | ||
build.gradle |