Merge pull request #2633 from anandolee/jieluo_branch1

Allow OneofOptions to be extended in proto3.
pull/2639/head
Jie Luo 8 years ago committed by GitHub
commit 1f09786229
  1. 2
      src/google/protobuf/descriptor.cc

@ -467,7 +467,7 @@ void InitAllowedProto3Extendee() {
allowed_proto3_extendees_ = new std::set<string>; allowed_proto3_extendees_ = new std::set<string>;
const char* kOptionNames[] = { const char* kOptionNames[] = {
"FileOptions", "MessageOptions", "FieldOptions", "EnumOptions", "FileOptions", "MessageOptions", "FieldOptions", "EnumOptions",
"EnumValueOptions", "ServiceOptions", "MethodOptions"}; "EnumValueOptions", "ServiceOptions", "MethodOptions", "OneofOptions"};
for (int i = 0; i < GOOGLE_ARRAYSIZE(kOptionNames); ++i) { for (int i = 0; i < GOOGLE_ARRAYSIZE(kOptionNames); ++i) {
// descriptor.proto has a different package name in opensource. We allow // descriptor.proto has a different package name in opensource. We allow
// both so the opensource protocol compiler can also compile internal // both so the opensource protocol compiler can also compile internal

Loading…
Cancel
Save