axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r365648 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
Date Tue, 03 Jan 2006 14:56:28 GMT
Author: dims
Date: Tue Jan  3 06:56:26 2006
New Revision: 365648

URL: http://svn.apache.org/viewcvs?rev=365648&view=rev
Log:
Possible Fix for build breakage. if someone calls setProperty() to a message context that
gets into the properties bag in AbstractContext, but getProperty is overridden in MessageContext
and should look into that bag as well.



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

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java?rev=365648&r1=365647&r2=365648&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/context/MessageContext.java
Tue Jan  3 06:56:26 2006
@@ -485,8 +485,14 @@
      * @return the value of the property, or null if the property is not found
      */
     public Object getProperty(String name) {
+        // search in my own properties bag
+        Object obj = super.getProperty(name);
+        if (obj != null) {
+            return obj;
+        }
+
         // search in my own options
-        Object obj = options.getProperty(name);
+        obj = options.getProperty(name);
         if (obj != null) {
             return obj;
         }



Mime
View raw message