Details
Description
In XML a •boolean• can have the following legal
literals
. 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/jibx-users@lists.sourceforge.net/msg02973.html We tried running this test on the JIBX 1.1.6a version, and still see the problem
Fixed this with added Utility.deserializeBoolean(String) and serializeBoolean(Boolean) methods.