Skip to content

Add static asserts to container classes.#11550

Closed
copybara-service[bot] wants to merge 0 commit intomainfrom
test_496676724
Closed

Add static asserts to container classes.#11550
copybara-service[bot] wants to merge 0 commit intomainfrom
test_496676724

Conversation

@copybara-service
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