Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1146

Android Incompatibility : in Android < 2.3 java.io.IOException doesn't support for Throwable parameter in constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.1
    • 0.7
    • Java - Compiler
    • android < 2.3 (level < 9)

    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

      Attachments

        1. fix_android_incompatibility.diff
          2 kB
          alessandro rossi

        Issue Links

          Activity

            People

              alexodus alessandro rossi
              alexodus alessandro rossi
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: