Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/JIBX-21 Here is an overview of the issue: --------------------------------------------------------------------- Key: JIBX-21 Summary: JiBX won't (un)marshal single characters Type: Bug Status: Unassigned Priority: Major Original Estimate: 5 minutes Time Spent: Unknown Remaining: 5 minutes Project: JiBX Components: core Versions: 1.0-beta3b Assignee: Reporter: Thomas Jones-Low Created: Wed, 19 May 2004 1:53 PM Updated: Wed, 19 May 2004 1:53 PM Description: JiBX refuses to (un)marshal single character values. The JiBX runtime utility insists upon improperly treating characters unsigned integers. test case: <binding> <mapping name="testcase" class="TestCase"> <value name="name" field="name"> <value name="yesno" field="yesno"> </mapping> </binding> public class TestCase { String name; char yesno; } <testcase> <name>test name</name> <yesno>Y</name> </testcase> The fix to this issue is to update the two functions in the runtime utility module: public static char parseChar(String text) throws JiBXException { if (text.length() != 1) throw new JiBXException ("Value out of range"); return text.charAt(0); } public static String serializeChar(char value) { return Character.toString(value); } --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ jibx-devs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-devs
