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 tags in codegen for large field numbers #213

Merged

Conversation

andrewparmet
Copy link
Collaborator

They need to be unsigned in order to be literals.

message TestMessageWithDummy {
// This field is only here for triggering copy-on-write; it's not intended to
// be serialized.
bool dummy = 536870911;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This field breaks generated code. The rest of this file will be used to test the implementation of conversion to DynamicMessage.

@andrewparmet andrewparmet marked this pull request as ready for review January 4, 2024 03:52
@@ -595,7 +595,7 @@ public abstract interface class protokt/v1/KtMessageDeserializer {
public abstract fun readSInt32 ()I
public abstract fun readSInt64 ()J
public abstract fun readString ()Ljava/lang/String;
public abstract fun readTag ()I
public abstract fun readTag-pVg5ArA ()I
Copy link
Member

Choose a reason for hiding this comment

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

what's this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

UInt nonsense.

Copy link
Member

Choose a reason for hiding this comment

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

is this ABI going to be stable?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't know. We already do this below - can we merge and revisit pre-1.0?

@andrewparmet andrewparmet merged commit bfb5f2d into open-toast:main Feb 7, 2024
5 checks passed
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