[ 
https://issues.apache.org/jira/browse/THRIFT-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057952#comment-13057952
 ] 

Mathias Herberts commented on THRIFT-1226:
------------------------------------------

Since binary fields in 0.6.0+ are backed by ByteBuffer which are not 
serializable but Thrift structs are declared Serializable, your suggestion 
would be that we provide a switch to generate buggy structs, this does not 
sound right, especially since the moment you will add a binary field to one of 
your struct your Java Serialization will break.


> command line option to disable overriding java serialization
> ------------------------------------------------------------
>
>                 Key: THRIFT-1226
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1226
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Compiler
>    Affects Versions: 0.6, 0.6.1
>            Reporter: ojciec pijo
>         Attachments: testcase.zip
>
>
> bugfix THRIFT-1038 is a breaking change since it overrides default java 
> serialization mechanism. as a result, objects generated by Thrift v6 are not 
> compatible with java serialization rules (references between objects are lost 
> after deserialization). Please provide a command line parameter to disable 
> generating readObject/writeObject as a workaround.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to