You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Frank Budinsky (JIRA)" <tu...@ws.apache.org> on 2007/02/20 20:03:06 UTC
[jira] Created: (TUSCANY-1127) ObtainingDataGraphFromXml, and maybe
other samples, incorrectly accessing xsd:any content
ObtainingDataGraphFromXml, and maybe other samples, incorrectly accessing xsd:any content
-----------------------------------------------------------------------------------------
Key: TUSCANY-1127
URL: https://issues.apache.org/jira/browse/TUSCANY-1127
Project: Tuscany
Issue Type: Bug
Components: Java SDO Samples
Affects Versions: Java-SDO-M3
Reporter: Frank Budinsky
Fix For: Java-SDO-M3
The ObtainingDataGraphFromXml sample includes the following:
// Obtain the company DataObject from the DataObject representing the datagraph
Sequence mySeq = (Sequence) dataObjectRepresentingDataGraph.getSequence("any");
company = (DataObject) mySeq.getValue(0);
1) the "any" property is an EMF-specific thing that was never defined in the SDO spec.
2) TUSCANY-521 will be removing the special Sequence-type properties, which will break this sample.
This needs to be change to use the proper SDO2 API:
company = dataObjectRepresentingDataGraph.getDataObject("company");
Any other samples that call get() and expect it to return a Sequence also need to be changed.
--
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
[jira] Commented: (TUSCANY-1127) ObtainingDataGraphFromXml, and
maybe other samples, incorrectly accessing xsd:any content
Posted by "Robbie Minshall (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474539 ]
Robbie Minshall commented on TUSCANY-1127:
------------------------------------------
Samples should also not be using the TypeHelper.INSTANCE etc.
I will provide a patch towards the end of the week.
> ObtainingDataGraphFromXml, and maybe other samples, incorrectly accessing xsd:any content
> -----------------------------------------------------------------------------------------
>
> Key: TUSCANY-1127
> URL: https://issues.apache.org/jira/browse/TUSCANY-1127
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Samples
> Affects Versions: Java-SDO-M3
> Reporter: Frank Budinsky
> Fix For: Java-SDO-M3
>
>
> The ObtainingDataGraphFromXml sample includes the following:
> // Obtain the company DataObject from the DataObject representing the datagraph
> Sequence mySeq = (Sequence) dataObjectRepresentingDataGraph.getSequence("any");
> company = (DataObject) mySeq.getValue(0);
> 1) the "any" property is an EMF-specific thing that was never defined in the SDO spec.
> 2) TUSCANY-521 will be removing the special Sequence-type properties, which will break this sample.
> This needs to be change to use the proper SDO2 API:
> company = dataObjectRepresentingDataGraph.getDataObject("company");
> Any other samples that call get() and expect it to return a Sequence also need to be changed.
--
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
[jira] Resolved: (TUSCANY-1127) ObtainingDataGraphFromXml, and
maybe other samples, incorrectly accessing xsd:any content
Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Goodson resolved TUSCANY-1127.
-------------------------------------
Resolution: Fixed
Resolved in commit 546467. There were no remaining references to get() calls that returned Sequences. I removed all the Helper and DataFactory INSTANCE references by doing a partial shift to the SampleBase infrastructure I put in in commit 546443. The samples still need work to make use of the new infrastructure, but what I have done so far is sufficient to resolve this JIRA.
> ObtainingDataGraphFromXml, and maybe other samples, incorrectly accessing xsd:any content
> -----------------------------------------------------------------------------------------
>
> Key: TUSCANY-1127
> URL: https://issues.apache.org/jira/browse/TUSCANY-1127
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Samples
> Affects Versions: Java-SDO-beta1
> Reporter: Frank Budinsky
> Fix For: Java-SDO-Next
>
>
> The ObtainingDataGraphFromXml sample includes the following:
> // Obtain the company DataObject from the DataObject representing the datagraph
> Sequence mySeq = (Sequence) dataObjectRepresentingDataGraph.getSequence("any");
> company = (DataObject) mySeq.getValue(0);
> 1) the "any" property is an EMF-specific thing that was never defined in the SDO spec.
> 2) TUSCANY-521 will be removing the special Sequence-type properties, which will break this sample.
> This needs to be change to use the proper SDO2 API:
> company = dataObjectRepresentingDataGraph.getDataObject("company");
> Any other samples that call get() and expect it to return a Sequence also need to be changed.
--
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