cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r724485 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
Date Mon, 08 Dec 2008 21:09:11 GMT
Author: gawor
Date: Mon Dec  8 13:09:11 2008
New Revision: 724485

URL: http://svn.apache.org/viewvc?rev=724485&view=rev
Log:
ensure Future.isDone() returns true only after AsyncHandler.handleResponse() is called

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java?rev=724485&r1=724484&r2=724485&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java (original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java Mon
Dec  8 13:09:11 2008
@@ -231,11 +231,16 @@
         }
         
         final ClientCallback callback = new ClientCallback() {
+            boolean handlerCalled;
             public void handleResponse(Map<String, Object> ctx, Object[] res) {
                 super.handleResponse(ctx, res);
                 if (handler != null) {
                     handler.handleResponse(new ResponseCallback(this));
                 }
+                handlerCalled = true;
+            }
+            public boolean isDone() {
+                return handlerCalled && super.isDone();
             }
         };
         



Mime
View raw message