Uh oh!
There was an error while loading. Please reload this page.
Add spec: deserializing objects with parameterized ctors - #33095
Conversation
3006d2b to
68f22e2Compare68f22e2 to
fa1ed91CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
a913b80 to
9063bf8CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| with a message stating that objects without public parameterless constructors, including `interface`s and `abstract` | ||
| types, are not supported for deserialization. There is no way to deserialize an instance of an object using a parameterized constructor. | ||
| A common pattern is to make data objects immutable for various reasons. For example, given `Point`: |
There was a problem hiding this comment.
Please note that this change alone won't support all immutable types. For example, our own immutable collections don't use constructors but factory methods.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Contributes to #29895.