Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 96601 invoked from network); 30 Aug 2006 09:03:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Aug 2006 09:03:41 -0000 Received: (qmail 57756 invoked by uid 500); 30 Aug 2006 09:03: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 57743 invoked by uid 99); 30 Aug 2006 09:03:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Aug 2006 02:03:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Aug 2006 02:03:40 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4A9B37142D0 for ; Wed, 30 Aug 2006 09:00:22 +0000 (GMT) Message-ID: <33415898.1156928422277.JavaMail.jira@brutus> Date: Wed, 30 Aug 2006 02:00:22 -0700 (PDT) From: "Marc Prud'hommeaux (JIRA)" To: jdo-dev@db.apache.org Subject: [jira] Created: (JDO-415) DataStoreConnection assumes datastore transactions are being used 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 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 Priority: Minor org.apache.jdo.tck.api.persistencemanager.DataStoreConnection assumes that the transaction 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