You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Brian Neate (JIRA)" <ji...@apache.org> on 2007/10/30 18:56:51 UTC
[jira] Created: (AXIS2-3313) ADB Boolean type mapping incorrect for
'1' and '0'
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Assigned: (AXIS2-3313) ADB Boolean type mapping incorrect
for '1' and '0'
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe reassigned AXIS2-3313:
----------------------------------------
Assignee: Amila Chinthaka Suriarachchi
> 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
> Assignee: Amila Chinthaka Suriarachchi
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-3313) ADB Boolean type mapping incorrect
for '1' and '0'
Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi resolved AXIS2-3313.
-------------------------------------------------
Resolution: Fixed
fixed the issue. called to the Converterutil class method
> 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
> Assignee: Amila Chinthaka Suriarachchi
>
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org