cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r777572 - /cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ParameterProcessor.java
Date Fri, 22 May 2009 15:25:23 GMT
Author: dkulp
Date: Fri May 22 15:25:20 2009
New Revision: 777572

URL: http://svn.apache.org/viewvc?rev=777572&view=rev
Log:
Make -autoNameResolution work for method parameters as well.

Modified:
    cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ParameterProcessor.java

Modified: cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ParameterProcessor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ParameterProcessor.java?rev=777572&r1=777571&r2=777572&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ParameterProcessor.java
(original)
+++ cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ParameterProcessor.java
Fri May 22 15:25:20 2009
@@ -111,9 +111,17 @@
         if (parameter == null) {
             return null;
         }
+        String name = parameter.getName();
+        int count = 0;
+        while (method.getParameter(parameter.getName()) != null
+            && context.optionSet(ToolConstants.CFG_AUTORESOLVE)) {
+            parameter.setName(name + (++count));
+        }
+        
         parameter.setMethod(method);
         parameter.annotate(new WebParamAnnotator());
         method.addParameter(parameter);
+
         return parameter;
     }
 
@@ -638,6 +646,7 @@
                 style = JavaType.Style.OUT;
             } else if (outputPartsMap.get(inputMessage.getMessagePartQName(partName)) !=
null
                 && isSamePart(part, outputPartsMap.get(inputMessage.getMessagePartQName(partName))))
{
+                
                 style = JavaType.Style.INOUT;
             }
             if (part != null) {



Mime
View raw message