logo       

[xstream-dev] [jira] Created: (XSTR-98) Cannot parse java.sql.Date-formatte: msg#00003

java.xstream.devel

Subject: [xstream-dev] [jira] Created: (XSTR-98) Cannot parse java.sql.Date-formatted dates

Message:

A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/XSTR-98

Here is an overview of the issue:
---------------------------------------------------------------------
Key: XSTR-98
Summary: Cannot parse java.sql.Date-formatted dates
Type: Bug

Status: Unassigned
Priority: Major

Original Estimate: 30 minutes
Time Spent: Unknown
Remaining: 30 minutes

Project: XStream
Components:
Converters

Assignee:
Reporter: James Schopp

Created: Wed, 14 Jul 2004 2:24 PM
Updated: Wed, 14 Jul 2004 2:24 PM

Description:
The current date converter
(com.thoughtworks.xstream.converters.basic.DateConverter) cannot parse the
standard java.sql.Date format (yyyy-MM-dd), nor is there a way to "unregister"
the existing the formatter and include my own.

For example, the following XML cannot be parsed into an object:
<Person>
<Name>John Doe</Name> <---- String
<DateOfBirth>1970-02-13</DateOfBirth> <---- java.util.Date
</Person>



To solve the formatting issue, the fix is trivial (simply add the new format to
the list of formats, on line 19).

However, it would be useful to be able to "unregister" the default converters,
so that users could add back customized versions of the basic converters, if
necessary (such as this date-formatting case).



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise