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

Java: Improve serialization utilities in runtime library #399

Closed
mikir opened this issue May 25, 2022 · 1 comment
Closed

Java: Improve serialization utilities in runtime library #399

mikir opened this issue May 25, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request java Java language generator
Milestone

Comments

@mikir
Copy link
Contributor

mikir commented May 25, 2022

Currently, Java runtime library offers generic solution for reading or writing of Zserio objects (class zserio.runtime.io.ZserioIO).

To be consistent, it would be good to implement serialize() and deserialize() methods similarly as C++ or Python runtime do.

@mikir mikir added enhancement New feature or request java Java language generator labels May 25, 2022
@mikir mikir added this to the Backlog milestone May 25, 2022
@mikir mikir modified the milestones: Backlog, 2.9 Oct 14, 2022
@mikir mikir changed the title Improve serialization utilities in Java runtime library Java: Improve serialization utilities in runtime library Nov 1, 2022
@mikir mikir self-assigned this Nov 1, 2022
mikir added a commit that referenced this issue Nov 10, 2022
This deprecates old ZserioIO interface which will be removed in the
future.
@mikir
Copy link
Contributor Author

mikir commented Nov 14, 2022

The following can help to understand possibly compatibility problems in user Java applications which can be caused by this issue:

  1. zserio.runtime.io.ZserioIO is deprecated and will be removed. Please use zserio.runtime.io.serializeToBytes() or zserio.runtime.io.deserializeFromBytes() instead.
  2. zserio.runtime.io.InitializeOffsetsWriter interface is deprecated and will be removed.
  3. Java runtime functions serialize(), serializeToBytes() and serializeToFile() call initiliazeOffsets() automatically.

@mikir mikir closed this as completed Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request java Java language generator
Projects
None yet
Development

No branches or pull requests

1 participant