-
Notifications
You must be signed in to change notification settings - Fork 14
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
fix tags in codegen for large field numbers #213
Conversation
message TestMessageWithDummy { | ||
// This field is only here for triggering copy-on-write; it's not intended to | ||
// be serialized. | ||
bool dummy = 536870911; |
There was a problem hiding this comment.
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.
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UInt nonsense.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
They need to be unsigned in order to be literals.