We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We can serialize a java.time.Instant through the WrappedMessage, where it writes an int64 and int32:
java.time.Instant
WrappedMessage
protostream/core/src/main/java/org/infinispan/protostream/WrappedMessage.java
Lines 293 to 298 in 8d20c39
However, the conversion to JSON fails, resulting in an empty String. I see other (primitive) types work out of the box. A simple reproducer:
@Test public void testInstant() throws Exception { ImmutableSerializationContext ctx = createContext(); byte[] data = ProtobufUtil.toWrappedByteArray(ctx, Instant.EPOCH); System.out.println(ProtobufUtil.toCanonicalJSON(ctx, data)); }
I've run this from the ProtobufUtilTest class.
ProtobufUtilTest
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We can serialize a
java.time.Instant
through theWrappedMessage
, where it writes an int64 and int32:protostream/core/src/main/java/org/infinispan/protostream/WrappedMessage.java
Lines 293 to 298 in 8d20c39
However, the conversion to JSON fails, resulting in an empty String. I see other (primitive) types work out of the box. A simple reproducer:
I've run this from the
ProtobufUtilTest
class.The text was updated successfully, but these errors were encountered: