axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Neate (JIRA)" <>
Subject [jira] Created: (AXIS2-3313) ADB Boolean type mapping incorrect for '1' and '0'
Date Tue, 30 Oct 2007 17:56:51 GMT
ADB Boolean type mapping incorrect for '1' and '0'

                 Key: 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:


This doesn't account for 1's or 0's and should be changed to 


                return new Boolean(true);

              else if(value.getText().equals("0"))

                return new Boolean(false);


                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:
For additional commands, e-mail:

View raw message