[go: up one dir, main page]

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

Add static asserts to container classes. #11550

Closed
wants to merge 0 commits into from
Closed

Conversation

copybara-service[bot]
Copy link
@copybara-service copybara-service bot commented Jan 13, 2023

Add static asserts to container classes.

This will prevent unsupported uses of these classes downstream, which can behave surprisingly and increase the friction of changes to protobuf. Specifically RepeatedField, RepeatedPtrField, and Map will only be allowed to hold the types listed in https://protobuf.dev/programming-guides/proto. The old behavior allowed them to hold just about anything, including custom user types.

@copybara-service copybara-service bot closed this Jan 17, 2023
@copybara-service copybara-service bot deleted the test_496676724 branch January 17, 2023 21:27
@github-pages github-pages bot temporarily deployed to github-pages January 17, 2023 21:28 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants