jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1130228 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemSaveOperation.java
Date Wed, 01 Jun 2011 17:18:29 GMT
Author: jukka
Date: Wed Jun  1 17:18:29 2011
New Revision: 1130228

URL: http://svn.apache.org/viewvc?rev=1130228&view=rev
Log:
JCR-2964: ItemSaveOperation should not swallow stacktrace

Fix based on a patch by Bart van der Schans

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemSaveOperation.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemSaveOperation.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemSaveOperation.java?rev=1130228&r1=1130227&r2=1130228&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemSaveOperation.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemSaveOperation.java
Wed Jun  1 17:18:29 2011
@@ -259,7 +259,8 @@ class ItemSaveOperation implements Sessi
             // update operation succeeded
             succeeded = true;
         } catch (StaleItemStateException e) {
-            throw new InvalidItemStateException(e.getMessage());
+            throw new InvalidItemStateException(
+                    "Unable to update a stale item: " + this, e);
         } catch (ItemStateException e) {
             throw new RepositoryException(
                     "Unable to update item: " + this, e);



Mime
View raw message