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

Rafal Rusin resolved ODE-667.
-----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Wishlist)
                   2.0

I submitted patch for trunk. 
I decided not to add it to 1.X branch, since this may cause incompatibility 
with existing bpel code. 
However if you would like to use it in 1.X, you can check it out here: 
http://github.com/rafalrusin/apache-ode/tree/APACHE_ODE_1.X-dates

> Simple type variables conversion between Java and Saxon in 
> JaxpVariableResolver is not correct
> ----------------------------------------------------------------------------------------------
>
>                 Key: ODE-667
>                 URL: https://issues.apache.org/jira/browse/ODE-667
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.3.3, 2.0
>            Reporter: Rafal Rusin
>            Assignee: Rafal Rusin
>             Fix For: 2.0
>
>
> For example, if we have declared variable:
> xsd:date d = '2009-01-01'
> And we want to insert it into xml message using assign:
> <assign>
>   <from>$d</from>
>   <to>$msg/some-date</to>
> </assign>
> we end up with msg containing:
> <some-date>2009-01-01T00:00:00Z</some-date>
> This is because JaxpVariableResolver converts xsd:date and xsd:dateTime to 
> Java Date, which are indistinguishable and converted to xsd:dateTime by 
> Saxon. 
> Moreover, for example xsd:integers are converted into Java Longs, which may 
> cause data loss, because xsd:integer is defined in xsd to be of arbitrary 
> length.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to