jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1536007 - /jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/DatasetGraphTransaction.java
Date Sat, 26 Oct 2013 17:08:53 GMT
Author: andy
Date: Sat Oct 26 17:08:52 2013
New Revision: 1536007

URL: http://svn.apache.org/r1536007
Log:
More cases when toString can provide debugging help.

Modified:
    jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/DatasetGraphTransaction.java

Modified: jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/DatasetGraphTransaction.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/DatasetGraphTransaction.java?rev=1536007&r1=1536006&r2=1536007&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/DatasetGraphTransaction.java
(original)
+++ jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/DatasetGraphTransaction.java
Sat Oct 26 17:08:52 2013
@@ -194,10 +194,12 @@ public class DatasetGraphTransaction ext
     public String toString()
     {
         try {
-            // Risky ... 
-            return get().toString() ;
+            if ( isInTransaction() )
+                // Risky ... 
+                return get().toString() ;
             // Hence ...
-        } catch (Throwable th) { return "DatasetGraphTransactional" ; }
+            return getBaseDatasetGraph().toString() ;
+        } catch (Throwable th) { return "DatasetGraphTransaction" ; }
     }
     
     @Override



Mime
View raw message