cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1366308 - /cxf/trunk/api/src/main/java/org/apache/cxf/endpoint/ClientImpl.java
Date Fri, 27 Jul 2012 08:49:03 GMT
Author: ay
Date: Fri Jul 27 08:49:03 2012
New Revision: 1366308

URL: http://svn.apache.org/viewvc?rev=1366308&view=rev
Log:
protect against a recursive reference in responseContext (for CXF-4437)

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/endpoint/ClientImpl.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/endpoint/ClientImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/endpoint/ClientImpl.java?rev=1366308&r1=1366307&r2=1366308&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/endpoint/ClientImpl.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/endpoint/ClientImpl.java Fri Jul 27 08:49:03
2012
@@ -634,9 +634,8 @@ public class ClientImpl
         if (inMsg != null) {
             if (null != resContext) {
                 resContext.putAll(inMsg);
-                if (LOG.isLoggable(Level.FINE)) {
-                    LOG.fine("set responseContext to be" + resContext);
-                }
+                // remove the recursive reference if present
+                resContext.remove(Message.INVOCATION_CONTEXT);
                 responseContext.put(Thread.currentThread(), resContext);
             }
             resList = CastUtils.cast(inMsg.getContent(List.class));



Mime
View raw message