axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Roder <mro...@wamnet.com>
Subject Issue - DateSerializer does not decode null dates
Date Mon, 22 Oct 2001 14:21:35 GMT

DateSerializer does not support null dates.  In the makeValue method a check
should be done for an empty string.

The soap response I am trying to parse contains a
"<LastShipped></LastShipped>" that exposes this bug.

Later

Mark



    static class DateDeser extends SOAPTypeMappingRegistry.BasicDeser {
        public Object makeValue(String source) { 
            Date result;

            // validate fixed portion of format
            if (source.length() < 19) 
                throw new NumberFormatException("invalid dateTime");

 



Mime
View raw message