db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r164441 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/extents/ExtentTest.java
Date Sun, 24 Apr 2005 03:00:07 GMT
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;



Mime
View raw message