proto2 syntax allows the first enum to have a non zero value. This means any field using that default has a non zero default without having an explicit default being set. So when deciding what runtime info is needed, don't rely on an explicit default, always check that the values aren't zero. Fixes https://github.com/google/protobuf/issues/1453pull/1454/head
parent
4057447997
commit
18b6a321b5
3 changed files with 22 additions and 4 deletions
Loading…
Reference in new issue