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

Protobuf - sintXX, fixedXX and sfixedXX map keys and values not serialized / deserialized correctly. #2417

Open
Dogacel opened this issue Aug 23, 2023 · 0 comments

Comments

@Dogacel
Copy link
Contributor

Dogacel commented Aug 23, 2023

Describe the bug

Protobuf maps with type sint32, sint64, fixed32, fixed64, sfixed32, and sfixed64 can't be serialized & deserialized correctly.

To Reproduce

    @ProtoNumber(62) val mapFixed32Fixed32: Map<Int, Int> = emptyMap(),
    @ProtoNumber(63) val mapFixed64Fixed64: Map<Long, Long> = emptyMap(),
    @ProtoNumber(64) val mapSfixed32Sfixed32: Map<Int, Int> = emptyMap(),
    @ProtoNumber(65) val mapSfixed64Sfixed64: Map<Long, Long> = emptyMap(),

Are not serialized / deserialized correctly.

Expected behavior

Should serialize and deserialize correctly.

Environment

  • Kotlin version: 1.9.0
  • Library version: 1.6.1
  • Kotlin platforms: All
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

No branches or pull requests

1 participant