db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Bengtson <e...@jpox.org>
Subject Re: TCK completeness interface
Date Thu, 06 Apr 2006 11:06:45 GMT

The "null" issue is over. It was a reachability issue where JPOX nullify all
fields before deleting from the database.

Now there is another issue in the CompletenessTest.test method where it falls
the expected object tree back to the concrete classes. It compares a concrete
object tree to the tree of objects generated by JPOX.

The code has a cast to Department and invoke to compareTo, and this code will
not work for interfaces.

    [java] 1) test(org.apache.jdo.tck.mapping.CompletenessTest)java.lang.ClassCa
stException: org.apache.jdo.tck.pc.company.IDepartmentImpl
    [java]      at org.apache.jdo.tck.pc.company.Department.compare(Department.j
    [java]      at java.util.Arrays.mergeSort(Arrays.java:1284)
    [java]      at java.util.Arrays.sort(Arrays.java:1223)
    [java]      at java.util.Collections.sort(Collections.java:159)
    [java]      at org.apache.jdo.tck.util.EqualityHelper.deepEquals(EqualityHel
    [java]      at org.apache.jdo.tck.pc.company.Company.deepCompareFields(Compa
    [java]      at org.apache.jdo.tck.mapping.CompletenessTest.test(Completeness

View raw message