Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 87909 invoked from network); 5 Oct 2006 02:50: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:50:33 -0000 Received: (qmail 94739 invoked by uid 500); 5 Oct 2006 02:50: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 94724 invoked by uid 99); 5 Oct 2006 02:50: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:50:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:53472] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 21/9A-20288-7F274254 for ; Wed, 04 Oct 2006 19:50:31 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1812271429F for ; Wed, 4 Oct 2006 19:50:20 -0700 (PDT) Message-ID: <32990225.1160016620068.JavaMail.root@brutus> Date: Wed, 4 Oct 2006 19:50:20 -0700 (PDT) From: "Craig Russell (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Commented: (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=comments#action_12440015 ] Craig Russell commented on JDO-415: ----------------------------------- Commit for the branch/2.0.1 svn commit -m "JDO-415" Sending tck20/src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreConnection.java Transmitting file data . Committed revision 453090. > 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