[infinispan-issues] [JBoss JIRA] (IPROTO-65) WrappedMessage::writeMessage does not handle instances of Short
Adrian Nistor (JIRA)
issues at jboss.org
Tue Jul 24 08:49:02 EDT 2018
[ https://issues.jboss.org/browse/IPROTO-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13609740#comment-13609740 ]
Adrian Nistor commented on IPROTO-65:
-------------------------------------
Same for Byte and Character. These primitives are not supported by design because there are no direct equivalents of byte, short, char in protobuf. They can be emulated using other types, like int32, but then the roundtrip would not be symmetrical, so it can confuse users, or at least that was the feeling a while ago.
We can introduce new fields in the WrappedMessage specially for them and ensure they roundtrip properly and make everybody happy. I'll start fixing this.
> WrappedMessage::writeMessage does not handle instances of Short
> ---------------------------------------------------------------
>
> Key: IPROTO-65
> URL: https://issues.jboss.org/browse/IPROTO-65
> Project: Infinispan ProtoStream
> Issue Type: Bug
> Affects Versions: 4.2.0.Final
> Reporter: Ryan Emerson
> Assignee: Adrian Nistor
>
> Attempts to marshall instances of Short results in an IllegalArgumentException being thrown:
> {code}
> java.lang.IllegalArgumentException: No marshaller registered for java.lang.Short
> at org.infinispan.protostream.impl.SerializationContextImpl.getMarshallerDelegate(SerializationContextImpl.java:288)
> at org.infinispan.protostream.WrappedMessage.writeMessage(WrappedMessage.java:192)
> at org.infinispan.protostream.ProtobufUtil.toWrappedByteArray(ProtobufUtil.java:167)
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list