jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1393380 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java
Date Wed, 03 Oct 2012 09:59:46 GMT
Author: jukka
Date: Wed Oct  3 09:59:46 2012
New Revision: 1393380

URL: http://svn.apache.org/viewvc?rev=1393380&view=rev
Log:
OAK-352: Oak buider for simplified repository construction

Avoid an infinite loop when adding a commit hook after a validator

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java?rev=1393380&r1=1393379&r2=1393380&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/Oak.java Wed Oct
 3 09:59:46 2012
@@ -110,7 +110,7 @@ public class Oak {
      */
     private void withValidatorHook() {
         if (!validatorProviders.isEmpty()) {
-            with(new ValidatingHook(
+            commitHooks.add(new ValidatingHook(
                     CompositeValidatorProvider.compose(validatorProviders)));
             validatorProviders.clear();
         }



Mime
View raw message