axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r545265 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
Date Thu, 07 Jun 2007 18:44:05 GMT
Author: dims
Date: Thu Jun  7 11:44:04 2007
New Revision: 545265

URL: http://svn.apache.org/viewvc?view=rev&rev=545265
Log:
checking in alternate patch for AXIS2-2783 - Better checking for overloaded operations in
AxisService addMessageElementQNameToOperationMapping()

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java?view=diff&rev=545265&r1=545264&r2=545265
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService.java
Thu Jun  7 11:44:04 2007
@@ -2311,7 +2311,8 @@
         // does exists means there are two or more operations which has the same input element
(in doc/literal
         // this is possible. In this case better to set it as null without giving
         // a random operation.
-        if (messageElementQNameToOperationMap.containsKey(messageElementQName)){
+        Object key = messageElementQNameToOperationMap.get(messageElementQName);
+        if (key != null  && key != operation){
             messageElementQNameToOperationMap.put(messageElementQName,null);
         } else {
             messageElementQNameToOperationMap.put(messageElementQName, operation);



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


Mime
View raw message