You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by David Reiss <dr...@facebook.com> on 2008/05/29 20:20:43 UTC

Re: [thrift] Using Thrift classes in struct

You can't declare that a struct contains a TSocket because the TSocket
is not serializable.  For Java, I would recommend subclassing the struct
and adding the TSocket as a member of the subclass.

--David

Luca wrote:
> Hello everyone,
>         I wanted to use a TSocket in a struct, but apparently it's not
> directly
> possible. I'm wondering is there's a mechanism to include in the java
> way the thrift libraries in such a way that the compiler doesn't
> complain. Any hint?
> 
> Cheers,
> Luca 
> 
> 
> 
> 
> _______________________________________________
> thrift mailing list
> thrift@publists.facebook.com
> http://publists.facebook.com/mailman/listinfo/thrift
>