You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Darin Tay (JIRA)" <ji...@apache.org> on 2012/07/04 00:36:35 UTC
[jira] [Created] (THRIFT-1641) Thrift 0.8 not compatible with
Android HttpClient
Darin Tay created THRIFT-1641:
---------------------------------
Summary: 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira