Kbase P157430: Integer number with leading zero (0) is read as Octal value
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  04/01/2010 |
|
Status: Unverified
SYMPTOM(s):
Integer number with leading zero (0) is read as Octal value
A 025 as Integer input read from WebServices adapter is converted to decimal value 21 in ABL
A hexadecimal 0x25 gets converted into a decimal 37 in ABL
Using 09 as input value throws: Error in SOAP parameter: Invalid integer value ''''09'''' sent to deserializer (10914).
FACT(s) (Environment):
OpenEdge 10.x
Sonic ESB 7.x
All Supported Operating Systems
CAUSE:
A leading 0 is representing an Octal value in the Java language standard so that reading a 025 from our WebServices adapter written in Java gets converted from Octal to a decimal number with the decimal value 21 because Octal values are not used in the ABL language. The Octal numbering system has no 8 and 9 and ends with 7
FIX:
Expected behavior