You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "ant elder (JIRA)" <de...@tuscany.apache.org> on 2011/08/20 09:39:27 UTC

[jira] [Updated] (TUSCANY-3377) don't convert blank element or attribute into one with the default value during deserialization

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

ant elder updated TUSCANY-3377:
-------------------------------

    Fix Version/s: Java-SDO-Next

> don't convert blank element or attribute into one with the default value during deserialization
> -----------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3377
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3377
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA Assembly Model
>    Affects Versions: Java-SCA-1.x
>            Reporter: Sean Zhou
>             Fix For: Java-SDO-Next
>
>
> the current Tuscany models convert blank element or attribute into one with the default value during deserialization. This causes issues in tools that use Tuscany models to read and write composite files.
> For example, 
> After going through deserialization and serialization of Tuscany models, the following binding.jms element is changed from 
>       <binding.jms>
>         <destination name="jms/SCA_JMSSAMPLE_Log_Request" type="queue"/>
>         <response>
>           <destination name="jms/SCA_JMSSAMPLE_Log_Response"/>
>           <connectionFactory name="jms/SCA_JMSSAMPLE_Log_Response_CF"/>
>         </response>
>         <tuscany:wireFormat.jmsObject/>
>       </binding.jms>
> to
>       <binding.jms>
>         <destination name="jms/SCA_JMSSAMPLE_Log_Request" type="queue"/>
>         <response>
>           <destination create="ifnotexist" name="jms/SCA_JMSSAMPLE_Log_Response" type="queue"/>
>           <connectionFactory create="ifnotexist" name="jms/SCA_JMSSAMPLE_Log_Response_CF"/>
>           <tuscany:wireFormat.jmsObject wrapSingle="false"/>
>         </response>
>         <tuscany:wireFormat.jmsObject wrapSingle="false"/>
>       </binding.jms>
> As you see above, the create attribute, the wrapSingle attribute, and the wireFormat.jmsObject in the response element are added. They don't make any functional harm on the composite but they are confusing to the user because the user didn't have those attributes and elements in the original composite.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira