You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Marshallers generated for classes with Map @ProtoField definitions always try to initialize the BaseMarshallerDelegate of the Map's value type to the _md$2 variable. Consequently, if there already exists a @ProtoField(2) definition for a type that also requires a BaseMarshallerDelegate, a ClassCastException will be thrown at runtime when the non-null _md$2 delegate is passed to a subsequent writeNestedMessage call.
java.lang.ClassCastException: class java.util.UUID cannot be cast to class java.math.BigInteger (java.util.UUID and java.math.BigInteger are in module java.base of loader 'bootstrap')
The text was updated successfully, but these errors were encountered:
ryanemerson
changed the title
Generated marshallers always use __md$2 variable when initialising BaseMarshallerDelegate
Generated map marshallers always use __md$2 variable when initialising BaseMarshallerDelegate
Feb 18, 2025
Marshallers generated for classes with Map
@ProtoField
definitions always try to initialize the BaseMarshallerDelegate of the Map's value type to the_md$2
variable. Consequently, if there already exists a@ProtoField(2)
definition for a type that also requires a BaseMarshallerDelegate, aClassCastException
will be thrown at runtime when the non-null_md$2
delegate is passed to a subsequentwriteNestedMessage
call.Example definition:
Generated code:
Exception:
The text was updated successfully, but these errors were encountered: