You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sc...@apache.org on 2007/09/21 02:21:41 UTC

svn commit: r577954 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/MessageContext.java

Author: scheu
Date: Thu Sep 20 17:21:39 2007
New Revision: 577954

URL: http://svn.apache.org/viewvc?rev=577954&view=rev
Log:
Contributor: Rich Scheuerle/David Illsley
David discovered a small problem with my recent change to the MessageContext sreialization code.
The copy method should only get the local properties.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/MessageContext.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/MessageContext.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/MessageContext.java?rev=577954&r1=577953&r2=577954&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/MessageContext.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/MessageContext.java Thu Sep 20 17:21:39 2007
@@ -2591,6 +2591,7 @@
         //---------------------------------------------------------
         // Write out the local properties on the MessageContext
         // Don't write out the properties from other hierarchical layers.
+        // (i.e. don't use getProperties())
         out.writeUTF("properties"); // write marker
         out.writeMap(properties);
 
@@ -3116,6 +3117,7 @@
         //---------------------------------------------------------
         // properties
         //---------------------------------------------------------
+        // read local properties
         in.readUTF(); // Read marker
         properties  = in.readHashMap();
 
@@ -3931,7 +3933,8 @@
         //---------------------------------------------------------
         // properties
         //---------------------------------------------------------
-        copy.setProperties(getProperties());
+        // Only set the local properties (i.e. don't use getProperties())
+        copy.setProperties(properties);
 
         //---------------------------------------------------------
         // special data



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org