]
Adrian Nistor updated IPROTO-10:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Default value is not used when reading a required field from a stream
which does not contain the field
------------------------------------------------------------------------------------------------------
Key: IPROTO-10
URL:
https://issues.jboss.org/browse/IPROTO-10
Project: Infinispan ProtoStream
Issue Type: Bug
Affects Versions: 3.0.5.Final
Reporter: Adrian Nistor
Assignee: Adrian Nistor
Fix For: 3.0.6.Final
This issue can appear if a field is first optional and later is marked required in the
schema and a default value is assigned. When reading from a stream encoded with the first
version of the schema we might not see the field and would expect the missing value to be
replaced with the default. Default values do not work in this particular case.