You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Alexis Midon (JIRA)" <ji...@apache.org> on 2009/09/25 01:46:16 UTC

[jira] Updated: (ODE-667) Simple type variables conversion between Java and Saxon in JaxpVariableResolver is not correct

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

Alexis Midon updated ODE-667:
-----------------------------

    Fix Version/s: Wishlist

> 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: Wishlist
>
>
> 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.