Skip to content

Ruby: assigning 'nil' to submessage should clear the field. - #7397

Merged
haberman merged 1 commit into
protocolbuffers:masterfrom
haberman:ruby-presence-fix
Apr 20, 2020
Merged

haberman merged 1 commit into
protocolbuffers:masterfrom
haberman:ruby-presence-fix

Conversation

@haberman

Copy link
Copy Markdown
Member

Previously if you assigned 'nil' to a submessage in proto2
the field would be set to 'nil' but would still have its hasbit
set. This was a clear bug so I'm fixing it outright, even though
it is an observable behavior change.

Previously if you assigned 'nil' to a submessage in proto2
the field would be set to 'nil' but would still have its hasbit
set. This was a clear bug so I'm fixing it outright, even though
it is an observable behavior change.
@haberman
haberman merged commit 1895045 into protocolbuffers:master Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants