You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/06/19 17:01:06 UTC

DO NOT REPLY [Bug 10008] New: - ConvertUtils conversion fails for some doubles, floats and booleans

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10008>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10008

ConvertUtils conversion fails for some doubles, floats and booleans

           Summary: ConvertUtils conversion fails for some doubles, floats
                    and booleans
           Product: Struts
           Version: 1.0.2 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Utilities
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: tomas@viberg.nu


ConvertUtils fails to convert null values to doubles and floats, since the
String constructor of the Double and Float classes throw NullPointerException
instead of NumberFormatException.

It also fails to convert "y/n" and "1/0" to their corresponding boolean values,
while ConvertUtils in Commons BeanUtils handles this.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>