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

Vitali Lovich commented on THRIFT-1641:
---------------------------------------

I too am seeing this issue & it's still present in 0.9.  I have to manually 
recompile the libthrift.jar to be compatible with Android.
                
> 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
>            Reporter: Darin Tay
>
> 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

Reply via email to