Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 56189 invoked from network); 2 Oct 2006 19:54:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 19:54:38 -0000 Received: (qmail 37311 invoked by uid 500); 2 Oct 2006 19:54:36 -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 37300 invoked by uid 99); 2 Oct 2006 19:54:36 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2006 12:54:36 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:47893] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id DC/A6-24395-77E61254 for ; Mon, 02 Oct 2006 12:54:31 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3C767714315 for ; Mon, 2 Oct 2006 12:54:23 -0700 (PDT) Message-ID: <25999962.1159818863245.JavaMail.root@brutus> Date: Mon, 2 Oct 2006 12:54:23 -0700 (PDT) From: "Michael Bouschen (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Updated: (JDO-412) Expectation of jdoPostLoad() invocation does not take into account the possibility of persistent-nontransactional state In-Reply-To: <12459753.1156920922271.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JDO-412?page=all ] Michael Bouschen updated JDO-412: --------------------------------- Fix Version/s: JDO 2 maintenance release 1 Description: Some tests assume that jdoPostLoad() will be called, but do not take into account the possibilty that persistent-nontransactional is a valid state, and that jdoPostLoad() is not invoked for those instances. The solution should be to force instances to be transitioned to persistent-clean after commit by setting RetainValues=false. This affects the following tests: org.apache.jdo.tck.api.instancecallbacks.CallingJdoPostload.test org.apache.jdo.tck.api.instancecallbacks.ModificationOfNontransactionalNonpersistentFields.test The solution is to invoke "setRetainValues(false)" after obtaining the transaction in both the test cases. E.g.: Transaction t = pm.currentTransaction(); t.setRetainValues(false); was: Some tests assume that jdoPostLoad() will be called, but do not take into account the possibilty that persistent-nontransactional is a valid state, and that jdoPostLoad() is not invoked for those instances. The solution should be to force instances to be transitioned to persistent-clean after commit by setting RetainValues=false. This affects the following tests: org.apache.jdo.tck.api.instancecallbacks.CallingJdoPostload.test org.apache.jdo.tck.api.instancecallbacks.ModificationOfNontransactionalNonpersistentFields.test The solution is to invoke "setRetainValues(false)" after obtaining the transaction in both the test cases. E.g.: Transaction t = pm.currentTransaction(); t.setRetainValues(false); > Expectation of jdoPostLoad() invocation does not take into account the possibility of persistent-nontransactional state > ----------------------------------------------------------------------------------------------------------------------- > > Key: JDO-412 > URL: http://issues.apache.org/jira/browse/JDO-412 > Project: JDO > Issue Type: Bug > Components: tck20 > Affects Versions: JDO 2 final > Reporter: Marc Prud'hommeaux > Assigned To: Michael Bouschen > Priority: Minor > Fix For: JDO 2 maintenance release 1 > > > Some tests assume that jdoPostLoad() will be called, but do not take into account the possibilty that persistent-nontransactional is a valid state, and that jdoPostLoad() is not invoked for those instances. The solution should be to force instances to be transitioned to persistent-clean after commit by setting RetainValues=false. > This affects the following tests: > org.apache.jdo.tck.api.instancecallbacks.CallingJdoPostload.test > org.apache.jdo.tck.api.instancecallbacks.ModificationOfNontransactionalNonpersistentFields.test > The solution is to invoke "setRetainValues(false)" after obtaining the transaction in both the test cases. E.g.: > Transaction t = pm.currentTransaction(); > t.setRetainValues(false); -- 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