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
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
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs