Skip to content

Include the size of values (and tags) for extensions, even if the value is the default#8219

Merged
jtattermusch merged 1 commit intoprotocolbuffers:masterfrom
jskeet:fix-extension-set
Feb 1, 2021
Merged

Include the size of values (and tags) for extensions, even if the value is the default#8219
jtattermusch merged 1 commit intoprotocolbuffers:masterfrom
jskeet:fix-extension-set

Conversation

@jskeet
Copy link
Copy Markdown
Contributor

@jskeet jskeet commented Jan 20, 2021

Fixes #8218.

@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Jan 28, 2021

Ping @haberman @jtattermusch

Copy link
Copy Markdown
Contributor

@jtattermusch jtattermusch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from the C# perspective.
Also LGTM from the protobuf perspective but I'd rather defer to @haberman 's opinion there.

@jtattermusch jtattermusch merged commit cea3653 into protocolbuffers:master Feb 1, 2021
@haberman
Copy link
Copy Markdown
Member

haberman commented Feb 1, 2021

Yes this LGTM. Extensions should always be serialized if present, and should never have the proto3 behavior of comparing with the default.

@jskeet jskeet deleted the fix-extension-set branch February 1, 2021 14:13
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.

ExtensionSet is inconsistent for default values

4 participants