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

java.lang.ClassCastException org.eclipse.emf.ecore.impl.DynamicEObjectImpl incompatible with commonj.sdo.DataObject

    XMLWordPrintableJSON

Details

    Description

      First reported here: http://www.mail-archive.com/tuscany-user%40ws.apache.org/msg00758.html

      When a schema with an invalid reference to another schema is defined it causes an IllegalArgumentException. If the same helperContext is later used to define another schema and then attempting to create using DataFactory causes a ClassCastException - though nothing is wrong with the second schema (passes define - create fails).

      The attached JUnit testcase illustrates the problem

      Attachments

        1. TestSDOErronousSchemaReferences.java
          5 kB
          Christian Landbo Frederiksen

        Activity

          People

            Unassigned Unassigned
            chrlandbo Christian Landbo Frederiksen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: