diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2017-07-14 15:48:48 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-14 15:48:48 -0600 |
commit | c78dbd7c895b8c80cd2f2401d73acf890edf82c6 (patch) | |
tree | 98c59f78325ec539b843505a7e9389be97dc6035 /examples/AddPerson.java | |
parent | ec3f5dcc725c415cf6bbc8325adf731370a3507d (diff) | |
download | protobuf-c78dbd7c895b8c80cd2f2401d73acf890edf82c6.tar.gz protobuf-c78dbd7c895b8c80cd2f2401d73acf890edf82c6.tar.bz2 protobuf-c78dbd7c895b8c80cd2f2401d73acf890edf82c6.zip |
Initial value in generated code cannot be used by c extension. (#3367)
In the generated code of previous versions, each php field is given an
initial value. In c extension, it was assumed that the field order in
the generated code is consistent with upb fields order, so that the
correct initial value can be bound to the correct upb field. However,
this may not be true. The order of fields in generated code is decided
by proto compiler, while the order of upb fields is decided by the hash
function used in c extension.
This PR fixes the issue by reset the initial value at runtime.
Diffstat (limited to 'examples/AddPerson.java')
0 files changed, 0 insertions, 0 deletions