You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/05/29 14:45:01 UTC
DO NOT REPLY [Bug 34206] -
[beanutils] DateLocaleConverter should deal with empty strings (null)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34206>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34206
skitching@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From skitching@apache.org 2005-05-29 14:45 -------
The method throws a ConversionException, not "crashes". This is exactly as per
the javadoc for the method.
And you can get the behaviour you want simply by creating a DateLocaleConverter
with an explicit default value:
DateLocaleConverter dlc = new DateLocaleConverter(null);
Of course that results in null being returned for *any* invalid date. But if you
don't like that behaviour, you can write your own converter that behaves however
you wish.
The register methods on LocaleConvertUtils or LocaleConvertUtilsBean can be used
to make the new converter the default.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org