commit | ae313d4af361c5f372b454220280d2daf9b34fbc | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Wed Oct 16 10:25:54 2019 -0700 |
committer | Joe Tsai <joetsai@digital-static.net> | Thu Oct 17 17:10:14 2019 +0000 |
tree | afbbdae2abee2d63b2f27fe65ac4622cdcb8e620 | |
parent | 591f09ab7ccf5332e66d6e6d24e1e8fb08167b89 [diff] |
cmd/protoc-gen-go: fix Reset method The MessageInfo cache, once set, must not be cleared, otherwise there exists a *messageState value where the MessageInfo value is nil. Fix the generation of the Reset method to avoid clearing this value. Change-Id: Ic84ca8b2640a43e967c36993da1ccd3f2b7096c4 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/201478 Reviewed-by: Damien Neil <dneil@google.com>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.