commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29772] New: - DateLocaleConverter does NOT return a default value if a conversion error occurs
Date Wed, 23 Jun 2004 23:22:21 GMT
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=29772>.
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=29772

DateLocaleConverter does NOT return a default value if a conversion error occurs 

           Summary: DateLocaleConverter does NOT return a default value if a
                    conversion error occurs
           Product: Commons
           Version: 1.6 Final
          Platform: PC
               URL: http://jakarta.apache.org/commons/beanutils/apidocs/inde
                    x.html
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: quinten.miller@mcri.edu.au


The org.apache.commons.beanutils.locale.converters.DateLocaleConverter does not 
return a default value even when the object is constructed with a default 
value. 

The reason for the exception being thrown lies within the BaseLocaleConvert 
class that DateLocaleConverter extends. I checked the source of 
BaseLocaleConvert and found that the boolean Default is set to false with this 
comment... Should we return the default value on conversion errors? There is no 
method supplied within the any of the subclasses that allows this boolean to be 
set.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message