Author: clr Date: Sat Apr 23 20:00:06 2005 New Revision: 164441 URL: http://svn.apache.org/viewcvs?rev=164441&view=rev Log: JDO-25 changed begin transaction to call Transaction directly to avoid recursion
Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/ExtentTest.java Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/ExtentTest.java URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/ExtentTest.java?rev=164441&r1=164440&r2=164441&view=diff ============================================================================== --- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/ExtentTest.java (original) +++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/ExtentTest.java Sat Apr 23 20:00:06 2005 @@ -65,10 +65,12 @@ /** */ protected void checkPM() { try { - beginTransaction(); + /** Don't use beginTransaction() because this calls getPM() + * which calls checkPM()! */ + pm.currentTransaction().begin(); Extent ex = getPM().getExtent(Company.class, false); int count = countIterator(ex.iterator()); - commitTransaction(); + pm.currentTransaction().commit(); if (count == 1) { if (debug) logger.debug ("Found company"); return;