THRIFT-945. java: TAsyncClient class's currentMethod is never set, hence a second...
authorBryan Duxbury <bryanduxbury@apache.org>
Wed, 6 Oct 2010 00:28:10 +0000 (00:28 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Wed, 6 Oct 2010 00:28:10 +0000 (00:28 +0000)
commit1df96ce22fcfa3cbc2700eb4be29e5d457167d15
treea7cab95eaf9e0822c3f669211e9734477fcaf0ca
parentded25bbe0d82ce151c633addd3b96d5c3e0c4dc1
THRIFT-945. java: TAsyncClient class's currentMethod is never set, hence a second call on the same client will fail if a previous call is ongoing.

This patch adds a test for the problem and fixes the issue by setting the current method after a call has been started.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1004865 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_java_generator.cc
lib/java/src/org/apache/thrift/async/TAsyncClient.java
lib/java/test/org/apache/thrift/async/TestTAsyncClient.java [new file with mode: 0644]