You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Fuhwei Lwo (JIRA)" <tu...@ws.apache.org> on 2007/03/15 04:05:12 UTC
[jira] Updated: (TUSCANY-917) XMLHelper.load() should demand-create
global properties not defined in the SDO type system
[ https://issues.apache.org/jira/browse/TUSCANY-917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fuhwei Lwo updated TUSCANY-917:
-------------------------------
Attachment: 917-testcase.patch
I am not sure whether this scenario is supported so I attached a patch for SimpleDynamicTestCase.java to demo my thought.
What I did is to serialize an undefined "stockQuote2" root element name then deserialize it back. In the past, I would get a feature not found exception. Now, it didn't throw an exception. However, I have no way of getting the "stockQuote2" property.
I thought the following statement would work but it didn't. It returns null.
Property prop = hc.getXSDHelper().getGlobalProperty(TEST_NAMESPACE, "stockQuote2", true);
> XMLHelper.load() should demand-create global properties not defined in the SDO type system
> ------------------------------------------------------------------------------------------
>
> Key: TUSCANY-917
> URL: https://issues.apache.org/jira/browse/TUSCANY-917
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Affects Versions: Java-SDO-Mx
> Reporter: Fuhwei Lwo
> Fix For: Java-SDO-Mx
>
> Attachments: 917-testcase.patch
>
>
> Currently, when you invoke XMLHelper.save(), it would serialize the non-defined global properties. However, the doc cannot be deserialized by XMLHelper.load() method.
--
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org