]
Adrian Nistor updated IPROTO-10:
--------------------------------
Fix Version/s: 3.0.6.Final
Default value is not used when reading 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
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.