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

StateTransitionsReturnedObjects incorrectly expects detachCopy() to allow passing a detached instance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • JDO 2 final (2.0)
    • JDO TCK challenge fixes
    • tck
    • None

    Description

      Element 11 (0-based) of the "detachCopy with active tx" array in org/apache/jdo/tck/lifecycle/StateTransitionsReturnedObjects.java asserts that a detached instance passed to detachCopy() should result in its state being unchanged. However, section 12.6.8 of the JDO 2 spec explicitly states: "If the parameter instance is detached, then JDOUserException is thrown."

      To fix it to check for the correct behavior, element 11 should be changed from "UNCHANGED" to "ERROR".

      Attachments

        Activity

          People

            clr Craig L Russell
            mprudhom Marc Prud'hommeaux
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: