axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Ammerlaan (JIRA)" <>
Subject [jira] Created: (AXIS2-4099) ConverterUtil.convertToDateTime() is to lenient
Date Mon, 27 Oct 2008 12:08:44 GMT
ConverterUtil.convertToDateTime() is to lenient

                 Key: AXIS2-4099
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.3, 1.4, 1.4.1
            Reporter: Marcel Ammerlaan
            Priority: Minor

When parsing an invalid date (as specified by the XSD Schema specification), Axis relies on
the java.util.Calendar leniency to parse. E.g. 2008-02-31 (31st of februari) is invalid according
to convertToDateTime() returns the 2nd of march
This can be easily solved by setting the Calender leniency to false (setLenient(false)).

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