Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug that causes DynamicMessage.setField() to not work for repeated enum fields. #38

Merged
merged 2 commits into from
Oct 3, 2014

Conversation

xfxyjwf
Copy link
Contributor

@xfxyjwf xfxyjwf commented Oct 2, 2014

Reviewers: @pherl @protobufel

Fixes #17

@xfxyjwf
Copy link
Contributor Author

xfxyjwf commented Oct 2, 2014

This bug was introduced to the open-source branch only because we haven't merged the change into our internal code base. Has it been integrated to our internal code base, I believe it will be rollback-ed immediately.

For future releases, when we make a release candidate, we should also merge all changes back to the internal branch so we have a better chance to discover such kind of bugs earlier.

@@ -573,7 +579,7 @@ private void verifyOneofContainingType(OneofDescriptor oneof) {
}

/** Verifies that the value is EnumValueDescriptor and matchs Enum Type. */
Copy link
Contributor

Choose a reason for hiding this comment

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

s/matchs/matches

@xfxyjwf
Copy link
Contributor Author

xfxyjwf commented Oct 3, 2014

Updated.

@liujisi
Copy link
Contributor

liujisi commented Oct 3, 2014

LGTM

xfxyjwf added a commit that referenced this pull request Oct 3, 2014
Fix a bug that causes DynamicMessage.setField() to not work for repeated enum fields.
@xfxyjwf xfxyjwf merged commit 56aa52d into protocolbuffers:master Oct 3, 2014
TeBoring pushed a commit to TeBoring/protobuf that referenced this pull request Jan 19, 2019
Added lots of decoder tests and fixed lots of bugs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DynamicMessage.setField doesn't allow setting value on a repeated enum field!
2 participants