protobuf-go/proto
Damien Neil 1605775be0 internal/impl: handle some dynamic legacy messages
When creating a MessageDescriptor for a legacy message with a
Descriptor method, we call that method on the type's zero value to
get the message's DescriptorProto. Some existing dynamic message
types have a Descriptor method which panics in this case.

Catch the panic and continue as if the Descriptor method wasn't present.

Change-Id: I98d4625d6917cc1ec25737e5670a443f5d02a404
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/206637
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2019-11-12 17:55:36 +00:00
..
bench_test.go proto: bench_test fixes 2019-07-09 19:32:32 +00:00
decode_gen.go all: remove use of deprecated NewMessage 2019-09-04 17:55:31 +00:00
decode_test.go reflect/protoreflect: remove nullability from repeated extension fields 2019-11-05 18:31:30 +00:00
decode.go proto, internal/impl: implement support for weak fields 2019-09-19 22:41:12 +00:00
doc.go proto, internal/impl: make IsInitialized more consistent 2019-07-09 19:49:22 +00:00
encode_gen.go all: support enforce_utf8 override 2019-07-15 19:53:05 +00:00
encode_test.go proto: improve slice growth in MarshalAppend 2019-09-28 01:00:09 +00:00
encode.go proto: improve slice growth in MarshalAppend 2019-09-28 01:00:09 +00:00
equal_test.go proto/equal: equate nil 2019-09-23 16:43:47 +00:00
equal.go proto/equal: equate nil 2019-09-23 16:43:47 +00:00
extension_test.go internal/protolegacy: add stub v1 proto package for testing purposes 2019-10-05 23:12:32 +00:00
extension.go all: rename ExtensionType Descriptor method to TypeDescriptor (1/2) 2019-08-28 18:34:29 +00:00
isinit_test.go proto, internal/impl: implement support for weak fields 2019-09-19 22:41:12 +00:00
isinit.go runtime/protoiface: move and rename XXX_Methods 2019-07-12 19:31:58 +00:00
merge_test.go proto: fix self-merging 2019-09-23 16:14:39 +00:00
merge.go proto: fix self-merging 2019-09-23 16:14:39 +00:00
messageset_test.go proto, internal/impl: store unknown MessageSet items in non-mset format 2019-11-11 19:40:27 +00:00
messageset.go proto, internal/impl: store unknown MessageSet items in non-mset format 2019-11-11 19:40:27 +00:00
methods_test.go internal/impl: handle some dynamic legacy messages 2019-11-12 17:55:36 +00:00
proto_methods.go proto: reset message by default in Unmarshal 2019-09-17 21:13:42 +00:00
proto_reflect.go proto: reset message by default in Unmarshal 2019-09-17 21:13:42 +00:00
proto.go all: remove dead code 2019-08-06 21:16:48 +00:00
reset_test.go internal/impl: treat a nil oneof wrapper as if it were unset 2019-08-16 00:24:53 +00:00
reset.go proto: reset message by default in Unmarshal 2019-09-17 21:13:42 +00:00
size_gen.go proto, internal/impl: avoid string->[]byte conversions 2019-06-24 17:41:45 +00:00
size.go proto: support message_set_wire_format 2019-07-15 19:32:30 +00:00
weak_test.go internal/impl: weak field bugfixes 2019-10-04 17:07:45 +00:00
wrappers.go proto: move T->*T wrappers from internal/scalar to proto 2019-07-12 17:35:01 +00:00