Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-526

Implementation fails to set other side of relationship on flush()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JDO 2 maintenance release 1 (2.1)
    • tck
    • None

    Description

      Some tests for managed relationships fail because after the test sets one side of the relationship, the implementation fails to set the other side on flush(). For example:

      testSetToNewFromMappedSide(org.apache.jdo.tck.mapping.Relationship1To1NoRelationships)junit.framework.AssertionFailedError:
      Assertion A15-3.1 (Relationship1To1NoRelationships) failed: testSetToNewFromMappedSide: Postcondition is false; other side of relationship not set on flush

      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:1115)
      at org.apache.jdo.tck.mapping.Relationship1To1NoRelationships.testSetToNewFromMappedSide(Relationship1To1NoRelationships.java:187)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:257)
      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)

      To reproduce, run either of:

      maven -Djdo.tck.cfglist=relationshipNoRelationships.conf runtck.jdori
      maven -Djdo.tck.cfglist=relationshipAllRelationships.conf runtck.jdori

      Attachments

        Activity

          People

            andyj Andy Jefferson
            mcaisse Michelle Caisse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: