You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (JIRA)" <ji...@apache.org> on 2012/12/22 19:49:12 UTC

[jira] [Resolved] (THRIFT-1641) Thrift 0.8 not compatible with Android HttpClient

     [ https://issues.apache.org/jira/browse/THRIFT-1641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Meier resolved THRIFT-1641.
---------------------------------

    Resolution: Fixed

committed
                
> Thrift 0.8 not compatible with Android HttpClient
> -------------------------------------------------
>
>                 Key: THRIFT-1641
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1641
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library
>    Affects Versions: 0.8, 0.9
>            Reporter: Darin Tay
>            Assignee: Roger Meier
>         Attachments: fix-thrift-1641.patch
>
>
> In Thrift 0.8, THttpClient.java added a call to EntityUtils.consume.  This was added in HttpClient 4.1, whereas Android only supports 4.0.  Additionally, while it's possible to package a newer version of HttpClient with your Android project, it has to be in a different package.
> This means the Thrift Java library no longer works on Android if THttpClient is used.
> Since the code behind EntityUtils.consume is pretty trivial (just close the stream if it's streaming), would it be possible to not use this method?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira