You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2007/08/02 12:07:05 UTC
svn commit: r562063 - in
/webservices/axis2/branches/java/1_3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/converter:
ConverterUtils.java JavaParamToPDCConverter.java
Author: dims
Date: Thu Aug 2 03:07:04 2007
New Revision: 562063
URL: http://svn.apache.org/viewvc?view=rev&rev=562063
Log:
Fix for AXIS2-3053 - when i have a method that takes GenericArrayType as a parameter, my web service project cannot be deployed in geronimo
Modified:
webservices/axis2/branches/java/1_3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/converter/ConverterUtils.java
webservices/axis2/branches/java/1_3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/converter/JavaParamToPDCConverter.java
Modified: webservices/axis2/branches/java/1_3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/converter/ConverterUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/converter/ConverterUtils.java?view=diff&rev=562063&r1=562062&r2=562063
==============================================================================
--- webservices/axis2/branches/java/1_3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/converter/ConverterUtils.java (original)
+++ webservices/axis2/branches/java/1_3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/converter/ConverterUtils.java Thu Aug 2 03:07:04 2007
@@ -221,7 +221,7 @@
return paramType;
}
- private static String getType(Type type, String paramType) {
+ public static String getType(Type type, String paramType) {
if (type instanceof Class) {
paramType = paramType + ((Class)type).getName();
} else if (type instanceof ParameterizedType) {
Modified: webservices/axis2/branches/java/1_3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/converter/JavaParamToPDCConverter.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/converter/JavaParamToPDCConverter.java?view=diff&rev=562063&r1=562062&r2=562063
==============================================================================
--- webservices/axis2/branches/java/1_3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/converter/JavaParamToPDCConverter.java (original)
+++ webservices/axis2/branches/java/1_3/modules/metadata/src/org/apache/axis2/jaxws/description/builder/converter/JavaParamToPDCConverter.java Thu Aug 2 03:07:04 2007
@@ -45,16 +45,8 @@
for (int i = 0; i < paramTypes.length; i++) {
ParameterDescriptionComposite pdc = new ParameterDescriptionComposite();
Type paramType = paramTypes[i];
- if (paramType instanceof Class) {
- Class paramClass = (Class)paramType;
- String fullType = "";
- pdc.setParameterType(paramClass.getName());
- } else if (paramType instanceof ParameterizedType) {
- ParameterizedType pt = (ParameterizedType)paramType;
- String fullType = "";
- fullType = ConverterUtils.getFullType(pt, fullType);
- pdc.setParameterType(fullType);
- }
+ String fullType = ConverterUtils.getType(paramType, "");
+ pdc.setParameterType(fullType);
pdc.setListOrder(i);
attachWebParamAnnotation(pdc, i);
pdcList.add(pdc);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org