Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 86811 invoked from network); 5 Oct 2006 02:46:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Oct 2006 02:46:33 -0000 Received: (qmail 89970 invoked by uid 500); 5 Oct 2006 02:46:33 -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 89958 invoked by uid 99); 5 Oct 2006 02:46:33 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Oct 2006 19:46:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:39341] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id EB/7A-20288-80274254 for ; Wed, 04 Oct 2006 19:46:32 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1DBD371429F for ; Wed, 4 Oct 2006 19:46:20 -0700 (PDT) Message-ID: <28995248.1160016380088.JavaMail.root@brutus> Date: Wed, 4 Oct 2006 19:46:20 -0700 (PDT) From: "Craig Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Resolved: (JDO-415) DataStoreConnection assumes datastore transactions are being used In-Reply-To: <33415898.1156928422277.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-415?page=all ] Craig Russell resolved JDO-415. ------------------------------- Resolution: Fixed svn commit src/java/org/apache/jdo/tck/api/persistencemanager Sending src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreConnection.java Transmitting file data . Committed revision 453089. > DataStoreConnection assumes datastore transactions are being used > ----------------------------------------------------------------- > > Key: JDO-415 > URL: http://issues.apache.org/jira/browse/JDO-415 > Project: JDO > Issue Type: Bug > Components: tck20 > Affects Versions: JDO 2 final > Reporter: Marc Prud'hommeaux > Assigned To: Craig Russell > Priority: Minor > Fix For: JDO 2 maintenance release 1, JDO 2.0 TCK challenge fixes > > Attachments: JDO-415.patch > > > org.apache.jdo.tck.api.persistencemanager.DataStoreConnection assumes that the connection returned from getDataStoreConnection will be re-used once a JDO transaction is started, but that assertion is only valid when using datastore transactions, and the test case does not ensure that a datastore transaction is being used. > The solution is to call "getPM().currentTransaction().setOptimistic(false);" just before "getPM().currentTransaction().begin();" in the testDataStoreConnection() test case. -- 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