Comment #9 on issue 256 by jas...@google.com: Error Converting Message to
array of Bytes (When negative Enum) - Java
2.4.1 should have contained this fix. Can you post a reproduction? If your
serialization does not have a negative enum value, then please open a
separate issue - the exception can occur generally when the ByteSize
computation does not match the size of data written by the serializer.
There is no message level interface, but you can just create the
CodedOutputStream around your OutputStream directly:
However, I think you should only be getting the OutOfSpaceException if
you're using the byte version of the methods, in which case the data is
written directly to the array. You need to make sure that the byte array
you provide is sufficiently large.
You received this message because you are subscribed to the Google Groups "Protocol
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at