axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Benuzzi (JIRA)" <>
Subject [jira] Created: (AXIS2-4695) error on array of xsd:date
Date Mon, 26 Apr 2010 10:04:33 GMT
error on array of xsd:date

                 Key: AXIS2-4695
             Project: Axis2
          Issue Type: Bug
          Components: adb
            Reporter: Marco Benuzzi

If a schema use an array of xsd:date there is an exception on unmashalling xml to adb objects.


add the code below to class in method
public static Object convertToArray(Class baseArrayClass, List objectList) at line 1148

        } else if (Date.class.equals(baseArrayClass)) {
            Date[] array = new Date[listSize];
            for (int i = 0; i < listSize; i++) {
                Object o = objectList.get(i);
                if (o != null) {
                    if (o instanceof String){
                        array[i] = ConverterUtil.convertToDate(o.toString());
                    } else if (o instanceof Date) {
                        array[i] = (Date) o;
            returnArray = array;

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message