ADB Boolean type mapping incorrect for '1' and '0'
--------------------------------------------------
Key: AXIS2-3313
URL: https://issues.apache.org/jira/browse/AXIS2-3313
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: adb
Affects Versions: 1.3
Reporter: Brian Neate
The values of 1 and 0 are not being mapped to the corresponding true and false
boolean values for a pojo web service. The problem is that in the
SimpleTypeMapper class the value for the boolean is got from:
Boolean.valueOf(value.getText())
This doesn't account for 1's or 0's and should be changed to
:
if(value.getText().equals("1"))
return new Boolean(true);
else if(value.getText().equals("0"))
return new Boolean(false);
else
return Boolean.valueOf(value.getText());
Since a 1 should map to true and a 0 should map to false. It needs to be
changed for both java.lang.Boolean objects and simple booleans
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]