You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pål Oliver Kristiansen (Created JIRA)" <ji...@apache.org> on 2012/04/20 11:14:52 UTC

[jira] [Created] (OGNL-48) Converting string values to boolean

Converting string values to boolean
-----------------------------------

                 Key: OGNL-48
                 URL: https://issues.apache.org/jira/browse/OGNL-48
             Project: Commons OGNL
          Issue Type: Bug
            Reporter: Pål Oliver Kristiansen


Maybe I misunderstand how to use OGNL, but this seems a bit wierd to me (test case below)

DefaultTypeConverter converter = new DefaultTypeConverter();
Object o = converter.convertValue(null, "false", Boolean.class);
assertEquals(false, o);  // fails. Object is Boolean == true

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira