You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King, III (JIRA)" <ji...@apache.org> on 2017/02/14 04:41:41 UTC
[jira] [Reopened] (THRIFT-4088) System.out in happy path
[ https://issues.apache.org/jira/browse/THRIFT-4088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James E. King, III reopened THRIFT-4088:
----------------------------------------
Assignee: James E. King, III
> System.out in happy path
> ------------------------
>
> Key: THRIFT-4088
> URL: https://issues.apache.org/jira/browse/THRIFT-4088
> Project: Thrift
> Issue Type: Improvement
> Reporter: Edward Capriolo
> Assignee: James E. King, III
>
> ./lib/java/src/org/apache/thrift/TServiceClient.java
> {noformat}
> protected void receiveBase(TBase<?,?> result, String methodName) throws TException {
> TMessage msg = iprot_.readMessageBegin();
> if (msg.type == TMessageType.EXCEPTION) {
> TApplicationException x = new TApplicationException();
> x.read(iprot_);
> iprot_.readMessageEnd();
> throw x;
> }
> System.out.format("Received %d%n", msg.seqid);
> if (msg.seqid != seqid_) {
> throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID,
> String.format("%s failed: out of sequence response: expected %d but got %d", methodName, seqid_, msg.seqid));
> }
> result.read(iprot_);
> iprot_.readMessageEnd();
> }
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)