GitHub user mbreslow opened a pull request:

    https://github.com/apache/thrift/pull/822

    Fix THRIFT-2157 (generated code would cause ClassCastException)

    Ran into this issue as well and implemented the suggestions by Iker Jimenez 
and dvdeepankar on 
https://issues.apache.org/jira/browse/THRIFT-2157?focusedCommentId=14380813&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14380813

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/DevFactory/thrift 
THRIFT-2157-fix-classcastexception

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/thrift/pull/822.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #822
    
----
commit 90e72a280c04c54d369033267d90746ee6348f0a
Author: Marc Breslow <marc.bres...@devfactory.com>
Date:   2016-01-26T03:17:16Z

    Introduce new interface TSerializable for TBase to extend and 
TApplicationException to implement. This will resolve THRIFT-2157.

commit 0dca59a0284a25acbba7eca00a78d7ad879d58d1
Author: Marc Breslow <marc.bres...@devfactory.com>
Date:   2016-01-26T03:28:49Z

    fix typo

commit 44385dc7646a99ebbc3d7c0adf94c6e16035f632
Author: Marc Breslow <marc.bres...@devfactory.com>
Date:   2016-01-26T18:36:55Z

    Put TSerializable in the right directory. Update TApplicationException to 
implement TSerializable's read() interface and update TServiceClient to use the 
read() method instead of the static one.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to