commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONFIGURATION-473) Number to Boolean conversion
Date Wed, 04 Jan 2012 16:56:39 GMT

    [ https://issues.apache.org/jira/browse/CONFIGURATION-473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13179635#comment-13179635
] 

Sebb commented on CONFIGURATION-473:
------------------------------------

bq. You meant "1 == true, otherwise == false", right?

No. I meant what I wrote.

bq. I prefer to stick to a common idiom.

There is more than one common idiom, which is why I commented on the proposal.
                
> Number to Boolean conversion
> ----------------------------
>
>                 Key: CONFIGURATION-473
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-473
>             Project: Commons Configuration
>          Issue Type: Improvement
>          Components: Type conversion
>    Affects Versions: 1.7
>            Reporter: Emmanuel Bourg
>             Fix For: 1.8
>
>
> The conversion of number values to boolean is not supported. {{0}} should be converted
to {{false}}, and any other number should be converted to {{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

        

Mime
View raw message