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

[Java] AsyncMethodCallback should be typed in generated AsyncIface

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.2, 0.9.3
    • Fix Version/s: 0.10.0
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: