-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix testSchemaIncompatibility for Protobuf 3.20.0 or later (#282)
fixes #193 ### Motivation `getExternalMessageDescriptor` returns the descriptor of `TestMessage` rather than `ExternalMessage` for Protobuf 3.20.0 or later. And the conditional compilation is meaningless here because `GetDescriptor` is always a static method while it didn't exist for some early versions of Protobuf. The official documentation suggests using `descriptor()`. ### Modifications Use `descriptor()` method to get the descriptor of a PB class.
- Loading branch information
1 parent
d03e46a
commit 9bfed6d
Showing
1 changed file
with
8 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters