You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Manish Shah (JIRA)" <ji...@apache.org> on 2008/05/30 05:50:45 UTC
[jira] Created: (THRIFT-28) Thrift generated classes dont implement
TBase
Thrift generated classes dont implement TBase
---------------------------------------------
Key: THRIFT-28
URL: https://issues.apache.org/jira/browse/THRIFT-28
Project: Thrift
Issue Type: Bug
Components: Compiler (Java)
Reporter: Manish Shah
When i ran thrift -java myfile.thrift, the classes generated for the structs i defined do not implement TBase. I believe this is a bug because when i was trying to Deserialize them, i was continuing to get an error when trying to compile my class that is attempting to deserialize a byte array into a empty instance of that class.
After adding TBase to the list of interfaces the class implements, it worked.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (THRIFT-28) Thrift generated classes dont implement
TBase
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury closed THRIFT-28.
-------------------------------
> Thrift generated classes dont implement TBase
> ---------------------------------------------
>
> Key: THRIFT-28
> URL: https://issues.apache.org/jira/browse/THRIFT-28
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Java)
> Reporter: Manish Shah
>
> When i ran thrift -java myfile.thrift, the classes generated for the structs i defined do not implement TBase. I believe this is a bug because when i was trying to Deserialize them, i was continuing to get an error when trying to compile my class that is attempting to deserialize a byte array into a empty instance of that class.
> After adding TBase to the list of interfaces the class implements, it worked.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (THRIFT-28) Thrift generated classes dont
implement TBase
Posted by "David Reiss (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601331#action_12601331 ]
David Reiss commented on THRIFT-28:
-----------------------------------
I can't reproduce this. Are you using an old build of the compiler? This is probably a stupid question, but is there any chance you are looking at a service class rather than a struct?
> Thrift generated classes dont implement TBase
> ---------------------------------------------
>
> Key: THRIFT-28
> URL: https://issues.apache.org/jira/browse/THRIFT-28
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Java)
> Reporter: Manish Shah
>
> When i ran thrift -java myfile.thrift, the classes generated for the structs i defined do not implement TBase. I believe this is a bug because when i was trying to Deserialize them, i was continuing to get an error when trying to compile my class that is attempting to deserialize a byte array into a empty instance of that class.
> After adding TBase to the list of interfaces the class implements, it worked.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (THRIFT-28) Thrift generated classes dont
implement TBase
Posted by "Manish Shah (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Manish Shah resolved THRIFT-28.
-------------------------------
Resolution: Fixed
this was an issue with an older compiler..it works in trunk.
> Thrift generated classes dont implement TBase
> ---------------------------------------------
>
> Key: THRIFT-28
> URL: https://issues.apache.org/jira/browse/THRIFT-28
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Java)
> Reporter: Manish Shah
>
> When i ran thrift -java myfile.thrift, the classes generated for the structs i defined do not implement TBase. I believe this is a bug because when i was trying to Deserialize them, i was continuing to get an error when trying to compile my class that is attempting to deserialize a byte array into a empty instance of that class.
> After adding TBase to the list of interfaces the class implements, it worked.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.