-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ObjC] Put out of range closed enum extension values in unknown fields.
For normal fields, closed enums get their out of range values put into unknown fields, but that wasn't happening for extension fields, this fixes that by adding the validation during parsing. Also document on the getExtension API what happens with enums. Add tests to confirm expected behaviors. PiperOrigin-RevId: 491356730
- Loading branch information
1 parent
7a7bdde
commit 903639c
Showing
3 changed files
with
113 additions
and
11 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
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
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