axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-3643) dateTime echo failes when input is 9999-12-31T23:59:59.9999999Z
Date Tue, 25 Mar 2008 13:17:24 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Davanum Srinivas updated AXIS2-3643:
------------------------------------

    Fix Version/s:     (was: 1.4)

not targetting for 1.4, unless someone submits a patch/testcase.

thanks,
dims

> dateTime echo failes when input is 9999-12-31T23:59:59.9999999Z
> ---------------------------------------------------------------
>
>                 Key: AXIS2-3643
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3643
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>            Reporter: Keith Godwin Chapman
>            Priority: Critical
>
> If date time is echoed and it is given the input 9999-12-31T23:59:59.9999999Z the response
is 9999-12-31T23:59:59.141+00:00. Here the milliseconds are incorrect and it looks like this
happens because of the follwoing logic in ConverterUtil at lines 973
> if (milliSecondPartLength != 3){
>                 // milisecond part represenst the fraction of the second so we have to
>                 // find the fraction and multiply it by 1000. So if milisecond part
>                 // has three digits nothing required
>                 miliSecond = miliSecond * 1000;
>                 for (int i = 0; i < milliSecondPartLength; i++) {
>                     miliSecond = miliSecond / 10;
>                 }
>             }
> Here we multiply the milliseconds by 1000 and hence it overflows causing the problem.

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


Mime
View raw message