Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 6864 invoked from network); 23 Mar 2006 19:48:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Mar 2006 19:48:42 -0000 Received: (qmail 58300 invoked by uid 500); 23 Mar 2006 19:48:41 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 58283 invoked by uid 99); 23 Mar 2006 19:48:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Mar 2006 11:48:41 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Mar 2006 11:48:40 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 0AB0AD4A01 for ; Thu, 23 Mar 2006 19:48:20 +0000 (GMT) Message-ID: <1824586278.1143143300041.JavaMail.jira@ajax> Date: Thu, 23 Mar 2006 19:48:20 +0000 (GMT) From: "Craig Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (JDO-347) JPOX fails some lifecycle tests In-Reply-To: <2018871922.1143102240849.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JDO-347?page=comments#action_12371626 ] Craig Russell commented on JDO-347: ----------------------------------- It might be useful here to review the process of detachCopy. First, the instances in the parameter list are made persistent as if makePersistent had been called. This will recursively make detached and transient instances persistent (detached instances are replaced in this process by corresponding persistent instances). Second, the FetchPlan is used to instantiate the object graph. Third, the detached instance graph is created from the persistent object graph, using the FetchPlan to determine which fields are to be marked as loaded in the detached instance graph. The detached instances corresponding to persistent instances by position in the original parameter list are returned to the user. So the test case that calls detachCopy on a detached instance expects that the instance returned is a newly created detached instance with the same object id as the persistent instance in the cache and the parameter instance. > JPOX fails some lifecycle tests > ------------------------------- > > Key: JDO-347 > URL: http://issues.apache.org/jira/browse/JDO-347 > Project: JDO > Type: Bug > Components: tck20 > Reporter: Martin Zaun > Attachments: errors_state_transition_argument_instances.txt, errors_state_transition_returned_instances.txt > > The integration of fixes for JDO-273 and JDO-258 has added (and fixed) a number of lifecycle test cases that are > failed by JPOX. See attached error messages. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira