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 Mark Roder <mr...@wamnet.com> on 2001/10/22 16:21:35 UTC
Issue - DateSerializer does not decode null dates
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");