[ http://issues.apache.org/jira/browse/AXISCPP-803?page=all ]
     
Adrian Dick closed AXISCPP-803:
-------------------------------

    Resolution: Invalid

Taking a look at some C/C++ documentation I have found the code is working 
correctly.

As mentioned by Nadir it looks like the number is being treated as an octal 
number.  This is because a leading '0' on a numerc constant indicates that it 
is an octal constant, simliar to '0x' indicates that it is an hexadecimal 
constant.  Hence 02345 being serialized as 1253.

> Axis C++ allows leading zeroes in XSD_unsignedLong type
> -------------------------------------------------------
>
>          Key: AXISCPP-803
>          URL: http://issues.apache.org/jira/browse/AXISCPP-803
>      Project: Axis-C++
>         Type: Bug
>   Components: XSD Types, Serialization
>     Versions: current (nightly)
>     Reporter: Manohar

>
> Axis C++ allows leading zeroes in XSD_unsignedLong type. As per the 
> specification, leading zeroes are prohibited for unsignedLong type. When an 
> input  with leading zeroes  (e.g. 0230) is given Axis C++ allows it and 
> random values are given as output. 
> XSD_unsignedLongClient.cpp test can be used to reproduce this problem.
> Regards
> Manohar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to