[
https://issues.apache.org/jira/browse/THRIFT-1641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13538524#comment-13538524
]
Carl Yeksigian commented on THRIFT-1641:
----------------------------------------
+1
Opening a new ticket to remove this code when Android has a compatible version
of EntityUtils.
> 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
> 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