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 am...@apache.org on 2007/07/01 18:17:38 UTC

svn commit: r552332 - /webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java

Author: amilas
Date: Sun Jul  1 09:17:35 2007
New Revision: 552332

URL: http://svn.apache.org/viewvc?view=rev&rev=552332
Log:
fixed the integration module failure due to last commit to converter util.
but I think this is due to bad programming. ConvertToArray is supposed to call with
a list of strings and the method supposed to create the baseclasstype objects from the stringlist.
calling this method with the correct objects, is useless. if you already have objects why
it calls for this method? So we have to fix the real bug in another place. 

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java?view=diff&rev=552332&r1=552331&r2=552332
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java (original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java Sun Jul  1 09:17:35 2007
@@ -771,7 +771,11 @@
             for (int i = 0; i < listSize; i++) {
                 Object o = objectList.get(i);
                 if (o != null) {
-                    array[i] = ConverterUtil.convertToDateTime(o.toString());
+                    if (o instanceof String){
+                        array[i] = ConverterUtil.convertToDateTime(o.toString());
+                    } else if (o instanceof Calendar) {
+                        array[i] = (Calendar) o;
+                    }
                 }
             }
             returnArray = array;



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