mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-02-22 03:40:55 +00:00
The previous implementation of messageWrapper implemented both proto.Message and protoreflect.Message. This made it possible for users to accidentally rely on this fact when it was actually an internal implementation detail. To avoid this, we split the wrapper type into two, ensuring that each only implements one or the other. Doing so also revealed bugs in our own code where we accidentally relied on this fact. Change-Id: I0ff521b5c806b7dcb0b86942bd97e8319d8e8657 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/166938 Reviewed-by: Damien Neil <dneil@google.com>