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 2011/04/16 13:03:05 UTC

[jira] [Commented] (THRIFT-1146) Android Incompatibility : in Android < 2.3 java.io.IOException doesn't support for Throwable parameter in constructor

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

Roger Meier commented on THRIFT-1146:
-------------------------------------

Could you provide a patch?

e.g. by adding a new option *--gen java:android_legacy*

> Android Incompatibility : in Android < 2.3 java.io.IOException doesn't support for Throwable parameter in constructor
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: THRIFT-1146
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1146
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Compiler
>    Affects Versions: 0.7
>         Environment: android < 2.3 (level < 9)
>            Reporter: alessandro rossi
>              Labels: android
>
> Android support IOException(throwable) only at level 9 (Android 2.3)
> in /thrift/trunk/compiler/cpp/src/generate/t_java_generator.cc
> 3841	  indent(out) << "  } catch (org.apache.thrift.TException te) {" << endl;
> 3842	  indent(out) << "    throw new java.io.IOException(te);" << endl;
> 3843	  indent(out) << "  }" << endl;
> 3856	  indent(out) << "  } catch (org.apache.thrift.TException te) {" << endl;
> 3857	  indent(out) << "    throw new java.io.IOException(te);" << endl;
> 3858	  indent(out) << "  }" << endl;
> this issue was introduced at revision 1063907, Wed Jan 26 22:42:02 2011 UTC

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira