The following issue has been updated:
Updater: Dennis Sosnoski (mailto:[EMAIL PROTECTED])
Date: Mon, 5 Jul 2004 6:37 PM
Changes:
Fix Version changed to 1.0-beta3c
Fix Version changed from CVS
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.codehaus.org/browse/JIBX-21?page=history
---------------------------------------------------------------------
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: Improvement
Status: Open
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: JiBX
Components:
core
Fix Fors:
1.0-beta3c
Versions:
1.0-beta3b
Assignee: Dennis Sosnoski
Reporter: Thomas Jones-Low
Created: Wed, 19 May 2004 1:53 PM
Updated: Mon, 5 Jul 2004 6:37 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 sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
jibx-devs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-devs