[ 
http://jira.codehaus.org/browse/JIBX-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Sosnoski resolved JIBX-223.
----------------------------------

         Assignee: Dennis Sosnoski
       Resolution: Fixed
    Fix Version/s: JiBX 1.2

Fixed this with added Utility.deserializeBoolean(String) and 
serializeBoolean(Boolean) methods.

> Mapping of 0/1 values to Boolean produces unexpected results
> ------------------------------------------------------------
>
>                 Key: JIBX-223
>                 URL: http://jira.codehaus.org/browse/JIBX-223
>             Project: JiBX
>          Issue Type: Bug
>          Components: core
>    Affects Versions: JiBX 1.1.5
>         Environment: Windows XP, JIBX 1.1.5 and JIBX 1.1.6a
>            Reporter: Jennifer Gau
>            Assignee: Dennis Sosnoski
>             Fix For: JiBX 1.2
>
>
> In XML a •boolean• can have the following legal
> literals {true, false, 1, 0}.  However, when mapping 1
> to a Boolean (the object), I expect the value to be
> true, but the value is actually set to false.  After
> debugging through the method calls, it appears that
> when using a Boolean, the Boolean constructor is
> called [public Boolean(String s)] and that only
> compares for the strings true/false not 0 and 1.
> This was posted to the newsgroup at:  http://www.mail-archive.com/[EMAIL 
> PROTECTED]/msg02973.html  We tried running this test on the JIBX 1.1.6a 
> version, and still see the problem

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to