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

Regression with test using java.util.Date

    XMLWordPrintableJSON

Details

    Description

      A previously working DAS test (org.apache.tuscany.das.rdb.test.ConverterTests.testArbitraryConverter) now fails with the following error:

      java.lang.ClassCastException: The value of type 'class org.eclipse.emf.ecore.xml.type.internal.XMLCalendar' must be of type 'class java.util.Date'
      at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleDataStatic.validate(EStructuralFeatureImpl.java:2046)
      at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleData.dynamicSet(EStructuralFeatureImpl.java:1942)
      at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(BasicEObjectImpl.java:686)
      at org.apache.tuscany.sdo.impl.DynamicDataObjectImpl.eDynamicSet(DynamicDataObjectImpl.java:147)
      at org.apache.tuscany.sdo.impl.DataObjectImpl.eSet(DataObjectImpl.java:1439)
      at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:642)
      at org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.set(DataObjectUtil.java:1970)
      at org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.setAndRecyle(DataObjectUtil.java:1976)
      at org.apache.tuscany.sdo.util.DataObjectUtil.setDate(DataObjectUtil.java:575)
      at org.apache.tuscany.sdo.impl.DataObjectImpl.setDate(DataObjectImpl.java:493)
      at org.apache.tuscany.das.rdb.test.ConverterTests.testArbitraryConverter(ConverterTests.java:90)

      I have removed this test from the DAS test suite to allow the build to complete until this is resolved.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kwilliams Kevin Joe Williams
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: