You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "alessandro rossi (JIRA)" <ji...@apache.org> on 2011/04/16 11:56:05 UTC

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

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


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

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

Posted by "alessandro rossi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

alessandro rossi updated THRIFT-1146:
-------------------------------------

    Description: 
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

  was:
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


> 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

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

Posted by "alessandro rossi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

alessandro rossi updated THRIFT-1146:
-------------------------------------

    Attachment: fix_android_incompatibility.diff

in attach the patch with option "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
>         Attachments: fix_android_incompatibility.diff
>
>
> 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

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

Posted by "alessandro rossi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

alessandro rossi updated THRIFT-1146:
-------------------------------------

    Description: 
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

  was:
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


> 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

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

Posted by "Roger Meier (JIRA)" <ji...@apache.org>.
    [ 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

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

Posted by "Roger Meier (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Meier resolved THRIFT-1146.
---------------------------------

    Resolution: Fixed
      Assignee: alessandro rossi

Thanks alessandro!
committed your patch

> 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
>            Assignee: alessandro rossi
>              Labels: android
>         Attachments: fix_android_incompatibility.diff
>
>
> 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

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

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13021041#comment-13021041 ] 

Hudson commented on THRIFT-1146:
--------------------------------

Integrated in Thrift #128 (See [https://hudson.apache.org/hudson/job/Thrift/128/])
    

> 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
>            Assignee: alessandro rossi
>              Labels: android
>         Attachments: fix_android_incompatibility.diff
>
>
> 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

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

Posted by "Roger Meier (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Meier updated THRIFT-1146:
--------------------------------

    Affects Version/s:     (was: 0.7)
                       0.6.1
        Fix Version/s: 0.7

> 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.6.1
>         Environment: android < 2.3 (level < 9)
>            Reporter: alessandro rossi
>            Assignee: alessandro rossi
>              Labels: android
>             Fix For: 0.7
>
>         Attachments: fix_android_incompatibility.diff
>
>
> 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

        

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

Posted by "Alex (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-1146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080111#comment-13080111 ] 

Alex commented on THRIFT-1146:
------------------------------

Last stable revision 0.6.1 is also affected.

> 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
>            Assignee: alessandro rossi
>              Labels: android
>         Attachments: fix_android_incompatibility.diff
>
>
> 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