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

protoparse: it is not allowed to reference a synthetic map entry #522

Merged
merged 1 commit into from Aug 15, 2022

Conversation

jhump
Copy link
Owner

@jhump jhump commented Aug 15, 2022

Though protoc's error messages can be quite confusing/misleading, the intent is clear that use of a synthetic map entry message should only be from the map field for which the message was synthesized.

The test includes two cases that fail with protoc but previously were accepted by protoparse.

@jhump
Copy link
Owner Author

jhump commented Aug 15, 2022

@amckinney, mind taking a look? I will also file a ticket to get this fix ported over to protocompile.

Copy link

@amckinney amckinney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@jhump jhump merged commit 7614117 into master Aug 15, 2022
@jhump jhump deleted the jh/cant-use-map-entry branch August 15, 2022 20:39
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.

None yet

2 participants