Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1127

ObtainingDataGraphFromXml, and maybe other samples, incorrectly accessing xsd:any content

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SDO-beta1
    • Java-SDO-1.0
    • Java SDO Samples
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            frankb Frank John Budinsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment