commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pål Oliver Kristiansen (Created) (JIRA) <>
Subject [jira] [Created] (OGNL-48) Converting string values to boolean
Date Fri, 20 Apr 2012 09:14:52 GMT
Converting string values to boolean

                 Key: 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:!default.jspa
For more information on JIRA, see:


View raw message