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

[Java] AsyncMethodCallback should be typed in generated AsyncIface

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2, 0.9.3
    • 0.10.0
    • None

    Description

      AsyncMethodCallback is generic, but current Java code generator is not adding type info to it, and instead of:

      public interface AsyncIface {
          public void ping(org.apache.thrift.async.AsyncMethodCallback<String> resultHandler) throws org.apache.thrift.TException;
       }
      

      we have:

      public interface AsyncIface {
          public void ping(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
       }
      

      Attachments

        Issue Links

          Activity

            People

              jsirois John Sirois
              bsideup Sergei Egorov
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: