Hi Edwin,

Your change seems reasonable, so I've committed them to the CVS.

Thanks,

--Keith


Edwin Dankert wrote:
> 
> Hi,
> 
> When one of the attribute values is an empty string, (attr="") the following
> exception occurs:
> 
> java.lang.ArrayIndexOutOfBoundsException at
> org.exolab.castor.types.Date.parseDateInternal(Date.java:304) at
> org.exolab.castor.types.Date.parseDate(Date.java:291) at
> org.exolab.castor.xml.schema.util.DatatypeHandler.guessType(DatatypeHandler.
> java:177) at
> org.exolab.castor.xml.schema.util.XMLInstance2SchemaHandler.startElement(XML
> Instance2SchemaHandler.java:419)
> 
> To solve this, a small change needs to be made to the guessType method in
> the DataTypeHandler class, since we can't guess the type for an empty string
> anyway, the type returned should probably default to STRING_TYPE???
> 
> Attached is the change.
> 
> Edwin
> 
>   ------------------------------------------------------------------------
>                Name: diff.txt
>    diff.txt    Type: Plain Text (text/plain)
>            Encoding: 7bit

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to