Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix string_type bugs in edition 2023 #17211

Merged
merged 4 commits into from
Jun 24, 2024
Merged

Fix string_type bugs in edition 2023 #17211

merged 4 commits into from
Jun 24, 2024

Conversation

mkruskal-google
Copy link
Member

@mkruskal-google mkruskal-google commented Jun 21, 2024

We change InferLegacyProtoFeatures to set ctype based on string_type when string_type is set. We need to update CppGenerator::ValidateFeatures to allow both ctype and string_type to be set because it runs after InferLegacyProtoFeatures.

PiperOrigin-RevId: 645480157

…nally.

We change InferLegacyProtoFeatures to set ctype based on string_type when string_type is set. We need to update CppGenerator::ValidateFeatures to allow both ctype and string_type to be set because it runs after InferLegacyProtoFeatures.

PiperOrigin-RevId: 645480157
@mkruskal-google mkruskal-google requested review from a team as code owners June 21, 2024 21:50
@mkruskal-google mkruskal-google requested review from acozzette and removed request for a team June 21, 2024 21:50
@mkruskal-google mkruskal-google added the back-port Cherrypick PRs to release branches label Jun 21, 2024
@mkruskal-google mkruskal-google changed the title Fix C++ string_type feature Fix a bug in which proto code uses ctype instead of string_type internally. Jun 21, 2024
This will allow internal code to simply check the feature value instead of checking both ctype and string_type.

PiperOrigin-RevId: 625897380
@mkruskal-google mkruskal-google changed the title Fix a bug in which proto code uses ctype instead of string_type internally. Fix string_type bugs in edition 2023 Jun 21, 2024
@mkruskal-google mkruskal-google merged commit 4923b8d into 27.x Jun 24, 2024
173 of 174 checks passed
@mkruskal-google mkruskal-google deleted the string-type-fix branch June 24, 2024 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-port Cherrypick PRs to release branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants