[infinispan-issues] [JBoss JIRA] (IPROTO-10) Default value is not used when reading a required field from a stream which does not contain the field

Adrian Nistor (JIRA) issues at jboss.org
Thu Jul 7 05:31:00 EDT 2016


     [ https://issues.jboss.org/browse/IPROTO-10?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list