-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
DynamicMessage.setField doesn't allow setting value on a repeated enum field! #17
Comments
The bug is a MAJOR one, a showstopper! Thanks in advance, |
Sorry, we don't have an ETA for this. It should be fixed in the next minor release which hasn't been scheduled yet. I believe most uses of DynamicMessage still work as we have unit-tests covering DynamicMessage: Presumably these tests are not failing despite of the bug. In most places we use addRepeatedField()/setRepeatedField() instead of setField() to manipulate repeated fields. Users could use these methods as a workaround as well. |
Nope, the merge uses setField, and the clone, new builder, and build, and This is really the showstopper! Update the tests and you'll see it! Also, most of the users will care only about the Maven Central, so this
|
Updating Readme links
…olbuffers#17) The premake build structure has been simplified and rewritten to reduce the boilerplate needed to add additional configurations while forcing the unique settings of a project to be defined. Migrate some defines and compiler options to the global settings and remove all the old boilerplate from this project. Issue-number: https://devtopia.esri.com/runtime/devops/issues/830 Signed-off-by: Christian O. Venegas <[email protected]>
The DynamicMessage.setField has wrong check, preventing setting any ENUM type list on it!
This is a major bug; this has been introduced only in 2.6.0.
Here is the excerpt from the source:
...
And verifyEnumType doesn't check for repeated value; here it is:
...
If field is repeated, then its value is instanceof List, will never be EnumValueDescriptor!
The text was updated successfully, but these errors were encountered: