db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r191216 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/JDO_Test.java
Date Fri, 17 Jun 2005 21:36:30 GMT
Author: clr
Date: Fri Jun 17 14:36:29 2005
New Revision: 191216

URL: http://svn.apache.org/viewcvs?rev=191216&view=rev
Log:
JDO-74 ignore Extents that are not managed

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/JDO_Test.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/JDO_Test.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/JDO_Test.java?rev=191216&r1=191215&r2=191216&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/JDO_Test.java (original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/JDO_Test.java Fri Jun 17 14:36:29
2005
@@ -27,6 +27,7 @@
 import java.util.Properties;
 import java.util.Vector;
 
+import javax.jdo.Extent;
 import javax.jdo.JDOException;
 import javax.jdo.JDOFatalException;
 import javax.jdo.JDOHelper;
@@ -368,7 +369,15 @@
         Collection col = new Vector() ;
         Query query = pm.newQuery();
         query.setClass(pcClass);
-        query.setCandidates(pm.getExtent(pcClass, false));
+        Extent candidates = null;
+        try {
+            candidates = pm.getExtent(pcClass, false);
+        } catch (JDOException ex) {
+            if (debug) logger.debug("Exception thrown for getExtent of class " +
+                    pcClass.getName());
+            return col;
+        }
+        query.setCandidates(candidates);
         Object result = query.execute();
         return (Collection)result;
     }



Mime
View raw message