Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 485 by fiz...@gmail.com: ByteString should be Serializable
http://code.google.com/p/protobuf/issues/detail?id=485

I'm aware that java serialization isn't perfect, and that it has many problems.

That being said, there are many frameworks and places in the java world that use Serializable as the default serialization that's always there. (In the example that bit us, akka, a scala framework for actor-based distributed computing, uses java serialization as its default serialization format)

ByteString is a very useful data abstraction (like String, but for bytes) and it's the kind of thing you end up with lots of when you're building something that takes protobuf-formatted messages off the wire from remote clients and then does local processing inside an akka framework.

It'd be really useful then if ByteString were serializable by java serialization and it's a small change.

Patch attached that does simple java serialization by serializing ByteStrings that need to be serialized as LiteralByteString instances.

Attachments:
        bytestring_serializable.patch  4.8 KB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to